Skip to content

Commit 71a1521

Browse files
committed
Replace deprecated SipHasher.
1 parent e2ea246 commit 71a1521

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bigint/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ use std::hash;
121121
#[cfg(test)]
122122
fn hash<T: hash::Hash>(x: &T) -> u64 {
123123
use std::hash::Hasher;
124-
let mut hasher = hash::SipHasher::new();
124+
let mut hasher = std::collections::hash_map::DefaultHasher::new();
125125
x.hash(&mut hasher);
126126
hasher.finish()
127127
}

complex/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ impl<T> serde::Deserialize for Complex<T> where
766766
#[cfg(test)]
767767
fn hash<T: hash::Hash>(x: &T) -> u64 {
768768
use std::hash::Hasher;
769-
let mut hasher = hash::SipHasher::new();
769+
let mut hasher = std::collections::hash_map::DefaultHasher::new();
770770
x.hash(&mut hasher);
771771
hasher.finish()
772772
}

rational/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ impl RatioErrorKind {
671671
#[cfg(test)]
672672
fn hash<T: hash::Hash>(x: &T) -> u64 {
673673
use std::hash::Hasher;
674-
let mut hasher = hash::SipHasher::new();
674+
let mut hasher = std::collections::hash_map::DefaultHasher::new();
675675
x.hash(&mut hasher);
676676
hasher.finish()
677677
}

0 commit comments

Comments
 (0)