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]
|
#[test]
|
||||||
fn pubkey_hash() {
|
fn pubkey_hash() {
|
||||||
use std::hash::{Hash, SipHasher, Hasher};
|
use std::collections::hash_map::DefaultHasher;
|
||||||
|
use std::hash::{Hash, Hasher};
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
fn hash<T: Hash>(t: &T) -> u64 {
|
fn hash<T: Hash>(t: &T) -> u64 {
|
||||||
let mut s = SipHasher::new();
|
let mut s = DefaultHasher::new();
|
||||||
t.hash(&mut s);
|
t.hash(&mut s);
|
||||||
s.finish()
|
s.finish()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue