@@ -938,22 +938,22 @@ impl<'a, K: Hash + Eq, V, S: BuildHasher> IntoIterator for &'a mut LinkedHashMap
938
938
}
939
939
940
940
/// 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 > {
942
942
/// An occupied Entry.
943
943
Occupied ( OccupiedEntry < ' a , K , V , S > ) ,
944
944
/// A vacant Entry.
945
945
Vacant ( VacantEntry < ' a , K , V , S > ) ,
946
946
}
947
947
948
948
/// 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 > {
950
950
entry : * mut LinkedHashMapEntry < K , V > ,
951
951
map : * mut LinkedHashMap < K , V , S > ,
952
952
marker : marker:: PhantomData < & ' a K > ,
953
953
}
954
954
955
955
/// 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 > {
957
957
key : K ,
958
958
map : & ' a mut LinkedHashMap < K , V , S > ,
959
959
}
0 commit comments