diff --git a/crates/util/identifier/src/lib.rs b/crates/util/identifier/src/lib.rs index a2d870c..7d9cf9b 100644 --- a/crates/util/identifier/src/lib.rs +++ b/crates/util/identifier/src/lib.rs @@ -157,11 +157,7 @@ mod serde { #[cfg(feature = "edcode")] mod edcode { - use std::{ - fmt::Display, - io::{self, ErrorKind}, - str::FromStr, - }; + use std::{fmt::Display, str::FromStr}; use rimecraft_edcode2::{Buf, BufMut, Decode, Encode}; diff --git a/crates/util/identifier/src/vanilla.rs b/crates/util/identifier/src/vanilla.rs index 22055ed..9c29a56 100644 --- a/crates/util/identifier/src/vanilla.rs +++ b/crates/util/identifier/src/vanilla.rs @@ -26,7 +26,7 @@ impl Namespace { where T: Into>, { - let value = value.into(); + let value = Into::>::into(value); validate_namespace(&value).unwrap(); Self(ArcCowStr::Arc(value)) } @@ -103,7 +103,7 @@ impl Path { where T: Into>, { - let value = value.into(); + let value = Into::>::into(value); validate_path(&value)?; Ok(Self(ArcCowStr::Arc(value))) }