mirror of https://github.com/xacrimon/dashmap
VacantEntry/OccupiedEntry default type for S (#193)
This commit is contained in:
parent
3d315aa7a7
commit
5e794aa789
|
@ -84,7 +84,7 @@ impl<'a, K: Eq + Hash, V, S: BuildHasher> Entry<'a, K, V, S> {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct VacantEntry<'a, K, V, S> {
|
||||
pub struct VacantEntry<'a, K, V, S = RandomState> {
|
||||
shard: RwLockWriteGuard<'a, HashMap<K, V, S>>,
|
||||
key: K,
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ impl<'a, K: Eq + Hash, V, S: BuildHasher> VacantEntry<'a, K, V, S> {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct OccupiedEntry<'a, K, V, S> {
|
||||
pub struct OccupiedEntry<'a, K, V, S = RandomState> {
|
||||
shard: RwLockWriteGuard<'a, HashMap<K, V, S>>,
|
||||
elem: (*const K, *mut V),
|
||||
key: K,
|
||||
|
|
Loading…
Reference in New Issue