diff --git a/bigint/src/lib.rs b/bigint/src/lib.rs index 5d261da..de6f223 100644 --- a/bigint/src/lib.rs +++ b/bigint/src/lib.rs @@ -121,7 +121,7 @@ use std::hash; #[cfg(test)] fn hash(x: &T) -> u64 { use std::hash::Hasher; - let mut hasher = hash::SipHasher::new(); + let mut hasher = std::collections::hash_map::DefaultHasher::new(); x.hash(&mut hasher); hasher.finish() } diff --git a/complex/src/lib.rs b/complex/src/lib.rs index c73cb42..339a1f2 100644 --- a/complex/src/lib.rs +++ b/complex/src/lib.rs @@ -766,7 +766,7 @@ impl serde::Deserialize for Complex where #[cfg(test)] fn hash(x: &T) -> u64 { use std::hash::Hasher; - let mut hasher = hash::SipHasher::new(); + let mut hasher = std::collections::hash_map::DefaultHasher::new(); x.hash(&mut hasher); hasher.finish() } diff --git a/rational/src/lib.rs b/rational/src/lib.rs index ce88516..02a17a7 100644 --- a/rational/src/lib.rs +++ b/rational/src/lib.rs @@ -671,7 +671,7 @@ impl RatioErrorKind { #[cfg(test)] fn hash(x: &T) -> u64 { use std::hash::Hasher; - let mut hasher = hash::SipHasher::new(); + let mut hasher = std::collections::hash_map::DefaultHasher::new(); x.hash(&mut hasher); hasher.finish() }