File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ use std::hash;
121
121
#[ cfg( test) ]
122
122
fn hash < T : hash:: Hash > ( x : & T ) -> u64 {
123
123
use std:: hash:: Hasher ;
124
- let mut hasher = hash :: SipHasher :: new ( ) ;
124
+ let mut hasher = std :: collections :: hash_map :: DefaultHasher :: new ( ) ;
125
125
x. hash ( & mut hasher) ;
126
126
hasher. finish ( )
127
127
}
Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ impl<T> serde::Deserialize for Complex<T> where
766
766
#[ cfg( test) ]
767
767
fn hash < T : hash:: Hash > ( x : & T ) -> u64 {
768
768
use std:: hash:: Hasher ;
769
- let mut hasher = hash :: SipHasher :: new ( ) ;
769
+ let mut hasher = std :: collections :: hash_map :: DefaultHasher :: new ( ) ;
770
770
x. hash ( & mut hasher) ;
771
771
hasher. finish ( )
772
772
}
Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ impl RatioErrorKind {
671
671
#[ cfg( test) ]
672
672
fn hash < T : hash:: Hash > ( x : & T ) -> u64 {
673
673
use std:: hash:: Hasher ;
674
- let mut hasher = hash :: SipHasher :: new ( ) ;
674
+ let mut hasher = std :: collections :: hash_map :: DefaultHasher :: new ( ) ;
675
675
x. hash ( & mut hasher) ;
676
676
hasher. finish ( )
677
677
}
You can’t perform that action at this time.
0 commit comments