num-complex
Advanced tools
+1
-1
@@ -10,3 +10,3 @@ [package] | ||
| repository = "https://github.com/rust-num/num" | ||
| version = "0.1.37" | ||
| version = "0.1.38" | ||
@@ -13,0 +13,0 @@ [dependencies] |
+3
-2
@@ -768,4 +768,5 @@ // Copyright 2013 The Rust Project Developers. See the COPYRIGHT | ||
| fn hash<T: hash::Hash>(x: &T) -> u64 { | ||
| use std::hash::Hasher; | ||
| let mut hasher = hash::SipHasher::new(); | ||
| use std::hash::{BuildHasher, Hasher}; | ||
| use std::collections::hash_map::RandomState; | ||
| let mut hasher = <RandomState as BuildHasher>::Hasher::new(); | ||
| x.hash(&mut hasher); | ||
@@ -772,0 +773,0 @@ hasher.finish() |