Minor code tweaks

This commit is contained in:
Emil Ernerfeldt
2022-12-05 09:45:07 +01:00
parent 5093b67e9b
commit 4e59296cbb
9 changed files with 50 additions and 25 deletions
+1 -2
View File
@@ -5,8 +5,7 @@ pub use ordered_float::*;
/// Hash the given value with a predictable hasher.
#[inline]
pub fn hash(value: impl std::hash::Hash) -> u64 {
use ahash::RandomState;
RandomState::with_seeds(1, 2, 3, 4).hash_one(value)
ahash::RandomState::with_seeds(1, 2, 3, 4).hash_one(value)
}
/// Hash the given value with the given hasher.