Skip to content

Commit d26a785

Browse files
carllerchereem
authored andcommitted
Default S to RandomState for *Entry types
1 parent 7602e52 commit d26a785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -938,22 +938,22 @@ impl<'a, K: Hash + Eq, V, S: BuildHasher> IntoIterator for &'a mut LinkedHashMap
938938
}
939939

940940
/// A view into a single location in a map, which may be vacant or occupied.
941-
pub enum Entry<'a, K: 'a, V: 'a, S: 'a + HashState> {
941+
pub enum Entry<'a, K: 'a, V: 'a, S: 'a = hash_map::RandomState> {
942942
/// An occupied Entry.
943943
Occupied(OccupiedEntry<'a, K, V, S>),
944944
/// A vacant Entry.
945945
Vacant(VacantEntry<'a, K, V, S>),
946946
}
947947

948948
/// A view into a single occupied location in a LinkedHashMap.
949-
pub struct OccupiedEntry<'a, K: 'a, V: 'a, S: 'a + HashState> {
949+
pub struct OccupiedEntry<'a, K: 'a, V: 'a, S: 'a = hash_map::RandomState> {
950950
entry: *mut LinkedHashMapEntry<K, V>,
951951
map: *mut LinkedHashMap<K, V, S>,
952952
marker: marker::PhantomData<&'a K>,
953953
}
954954

955955
/// A view into a single empty location in a HashMap.
956-
pub struct VacantEntry<'a, K: 'a, V: 'a, S: 'a + HashState> {
956+
pub struct VacantEntry<'a, K: 'a, V: 'a, S: 'a = hash_map::RandomState> {
957957
key: K,
958958
map: &'a mut LinkedHashMap<K, V, S>,
959959
}

0 commit comments

Comments
 (0)