aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-24 14:56:46 -0500
committermat <github@matdoes.dev>2022-04-24 14:56:46 -0500
commit97d392f4e5721d8aa8940f253918965ff0b40348 (patch)
treeb36bceca7376a13cf767990801438e808ef8e2de
parent59ef9450942b88cad14b5bfc93e0ed9f451d76be (diff)
downloadazalea-drasl-97d392f4e5721d8aa8940f253918965ff0b40348.tar.xz
fix warnings in azalea-nbt
-rwxr-xr-xazalea-nbt/benches/my_benchmark.rs2
-rwxr-xr-xazalea-nbt/src/error.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/azalea-nbt/benches/my_benchmark.rs b/azalea-nbt/benches/my_benchmark.rs
index fcb44f90..2fc7ec2f 100755
--- a/azalea-nbt/benches/my_benchmark.rs
+++ b/azalea-nbt/benches/my_benchmark.rs
@@ -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) {
diff --git a/azalea-nbt/src/error.rs b/azalea-nbt/src/error.rs
index 278d2770..219921e4 100755
--- a/azalea-nbt/src/error.rs
+++ b/azalea-nbt/src/error.rs
@@ -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
}
-} \ No newline at end of file
+}