Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Mar 28, 2024
1 parent 3a4bc49 commit 1da6f8f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions crates/util/registry/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ impl<K: std::fmt::Debug, T> std::fmt::Debug for TagsGuard<'_, K, T> {

#[cfg(feature = "serde")]
mod serde {
//! Helper module for `serde` support.

use std::hash::Hash;

use crate::ProvideRegistry;
Expand Down Expand Up @@ -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};
Expand Down
3 changes: 1 addition & 2 deletions crates/util/registry/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions crates/util/registry/src/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1da6f8f

Please sign in to comment.