mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
fix warnings in azalea-nbt
This commit is contained in:
parent
59ef945094
commit
97d392f4e5
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ use criterion::{criterion_group, criterion_main, Criterion, Throughput};
|
|||
use flate2::read::GzDecoder;
|
||||
use std::{
|
||||
fs::File,
|
||||
io::{self, Cursor, Read, Seek, SeekFrom},
|
||||
io::{self, Read, Seek, SeekFrom},
|
||||
};
|
||||
|
||||
fn bench_serialize(filename: &str, c: &mut Criterion) {
|
||||
|
|
|
@ -16,12 +16,12 @@ impl std::fmt::Display for Error {
|
|||
}
|
||||
|
||||
impl From<std::io::Error> for Error {
|
||||
fn from(err: std::io::Error) -> Self {
|
||||
fn from(_: std::io::Error) -> Self {
|
||||
Error::WriteError
|
||||
}
|
||||
}
|
||||
impl From<std::string::FromUtf8Error> for Error {
|
||||
fn from(err: std::string::FromUtf8Error) -> Self {
|
||||
fn from(_: std::string::FromUtf8Error) -> Self {
|
||||
Error::WriteError
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue