Handle clippy cases of rustc::potential_query_instability lint

This commit is contained in:
ismailarilik 2024-10-05 07:34:14 +03:00
parent c39f318c5e
commit 925e7e6baf
12 changed files with 34 additions and 35 deletions

View file

@ -3,6 +3,7 @@ use std::hash::{BuildHasherDefault, Hasher};
pub type UnhashMap<K, V> = HashMap<K, V, BuildHasherDefault<Unhasher>>;
pub type UnhashSet<V> = HashSet<V, BuildHasherDefault<Unhasher>>;
pub type UnindexMap<K, V> = indexmap::IndexMap<K, V, BuildHasherDefault<Unhasher>>;
/// This no-op hasher expects only a single `write_u64` call. It's intended for
/// map keys that already have hash-like quality, like `Fingerprint`.