diff --git a/crates/util/registry/src/entry.rs b/crates/util/registry/src/entry.rs index 747653e..7b0e50c 100644 --- a/crates/util/registry/src/entry.rs +++ b/crates/util/registry/src/entry.rs @@ -118,8 +118,6 @@ impl std::fmt::Debug for TagsGuard<'_, K, T> { #[cfg(feature = "serde")] mod serde { - //! Helper module for `serde` support. - use std::hash::Hash; use crate::ProvideRegistry; @@ -161,8 +159,6 @@ mod serde { #[cfg(feature = "edcode")] mod edcode { - //! Helper module for `edcode` support. - use std::hash::Hash; use rimecraft_edcode::{Decode, Encode, VarI32}; diff --git a/crates/util/registry/src/key.rs b/crates/util/registry/src/key.rs index a8e6a5d..40f1f9b 100644 --- a/crates/util/registry/src/key.rs +++ b/crates/util/registry/src/key.rs @@ -136,10 +136,9 @@ mod serde { } } +/// Helper module for `edcode` support. #[cfg(feature = "edcode")] pub mod edcode { - //! Helper module for `edcode` support. - use rimecraft_edcode::{bytes, Decode, Encode}; use crate::ProvideRegistry; diff --git a/crates/util/registry/src/tag.rs b/crates/util/registry/src/tag.rs index 10e0d53..d179290 100644 --- a/crates/util/registry/src/tag.rs +++ b/crates/util/registry/src/tag.rs @@ -109,10 +109,9 @@ impl<'a, K, T> Iterator for Iter<'a, K, T> { } } +/// Helper module for `serde` support. #[cfg(feature = "serde")] pub mod serde { - //! Helper module for `serde` support. - use std::str::FromStr; use crate::ProvideRegistry;