Remove key type from StraightHashMap.

This commit is contained in:
Stephen Chung
2022-09-12 23:08:38 +08:00
parent 08f6682d09
commit 40a12b2b7d
5 changed files with 19 additions and 19 deletions

View File

@@ -8,10 +8,10 @@ use std::{
};
#[cfg(feature = "no_std")]
pub type StraightHashMap<K, V> = hashbrown::HashMap<K, V, StraightHasherBuilder>;
pub type StraightHashMap<V> = hashbrown::HashMap<u64, V, StraightHasherBuilder>;
#[cfg(not(feature = "no_std"))]
pub type StraightHashMap<K, V> = std::collections::HashMap<K, V, StraightHasherBuilder>;
pub type StraightHashMap<V> = std::collections::HashMap<u64, V, StraightHasherBuilder>;
/// Dummy hash value to map zeros to. This value can be anything.
///