Use DefaultHasher in place of the deprecated SipHasher

This commit is contained in:
Christian Nyumbayire 2017-04-27 21:46:28 +02:00
parent f272b8345f
commit ab0493e46a
1 changed files with 3 additions and 2 deletions

View File

@ -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()
}