Remove macro_use from stable_hasher.

Normal `use` items are nicer.
This commit is contained in:
Nicholas Nethercote 2024-05-06 13:04:33 +10:00
parent 9c9b568792
commit df8fe7dd34
3 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
use crate::stable_hasher::impl_stable_traits_for_trivial_type;
use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult}; use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult};
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
use std::hash::{Hash, Hasher}; use std::hash::{Hash, Hasher};

View File

@ -72,15 +72,14 @@ pub mod small_c_str;
pub mod snapshot_map; pub mod snapshot_map;
pub mod svh; pub mod svh;
pub use ena::snapshot_vec; pub use ena::snapshot_vec;
pub mod memmap;
pub mod sorted_map;
#[macro_use]
pub mod stable_hasher;
mod atomic_ref; mod atomic_ref;
pub mod fingerprint; pub mod fingerprint;
pub mod marker; pub mod marker;
pub mod memmap;
pub mod profiling; pub mod profiling;
pub mod sharded; pub mod sharded;
pub mod sorted_map;
pub mod stable_hasher;
pub mod stack; pub mod stack;
pub mod sync; pub mod sync;
pub mod tiny_list; pub mod tiny_list;

View File

@ -296,6 +296,8 @@ macro_rules! impl_stable_traits_for_trivial_type {
}; };
} }
pub(crate) use impl_stable_traits_for_trivial_type;
impl_stable_traits_for_trivial_type!(i8); impl_stable_traits_for_trivial_type!(i8);
impl_stable_traits_for_trivial_type!(i16); impl_stable_traits_for_trivial_type!(i16);
impl_stable_traits_for_trivial_type!(i32); impl_stable_traits_for_trivial_type!(i32);