Merge pull request #11 from chritchens/master
Use DefaultHasher in place of the deprecated SipHasher
This commit is contained in:
commit
ab72e8da42
|
@ -673,11 +673,12 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn pubkey_hash() {
|
||||
use std::hash::{Hash, SipHasher, Hasher};
|
||||
use std::collections::hash_map::DefaultHasher;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::collections::HashSet;
|
||||
|
||||
fn hash<T: Hash>(t: &T) -> u64 {
|
||||
let mut s = SipHasher::new();
|
||||
let mut s = DefaultHasher::new();
|
||||
t.hash(&mut s);
|
||||
s.finish()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue