1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Minor code tweaks

This commit is contained in:
Emil Ernerfeldt
2022-12-05 09:40:47 +01:00
parent 5093b67e9b
commit 4e59296cbb
9 changed files with 50 additions and 25 deletions

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.