Skip to content

Commit 5331b9d

Browse files
committed
Adjust Entry APIs to use BuildHasher instead of HashState.
1 parent 147d8df commit 5331b9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ impl<'a, K, V> Iterator for IterMut<'a, K, V> {
890890
}
891891
}
892892

893-
impl<'a, K, V, S: HashState> Iterator for Entries<'a, K, V, S> {
893+
impl<'a, K, V, S: BuildHasher> Iterator for Entries<'a, K, V, S> {
894894
type Item = OccupiedEntry<'a, K, V, S>;
895895

896896
fn next(&mut self) -> Option<OccupiedEntry<'a, K, V, S>> {
@@ -1035,7 +1035,7 @@ pub struct VacantEntry<'a, K: 'a, V: 'a, S: 'a = hash_map::RandomState> {
10351035
map: &'a mut LinkedHashMap<K, V, S>,
10361036
}
10371037

1038-
impl<'a, K: Hash + Eq, V, S: HashState> Entry<'a, K, V, S> {
1038+
impl<'a, K: Hash + Eq, V, S: BuildHasher> Entry<'a, K, V, S> {
10391039
/// Returns the entry key
10401040
///
10411041
/// # Examples
@@ -1073,7 +1073,7 @@ impl<'a, K: Hash + Eq, V, S: HashState> Entry<'a, K, V, S> {
10731073
}
10741074
}
10751075

1076-
impl<'a, K: Hash + Eq, V, S: HashState> OccupiedEntry<'a, K, V, S> {
1076+
impl<'a, K: Hash + Eq, V, S: BuildHasher> OccupiedEntry<'a, K, V, S> {
10771077
/// Gets a reference to the entry key
10781078
///
10791079
/// # Examples
@@ -1128,7 +1128,7 @@ impl<'a, K: Hash + Eq, V, S: HashState> OccupiedEntry<'a, K, V, S> {
11281128
}
11291129
}
11301130

1131-
impl<'a, K: 'a + Hash + Eq, V: 'a, S: HashState> VacantEntry<'a, K, V, S> {
1131+
impl<'a, K: 'a + Hash + Eq, V: 'a, S: BuildHasher> VacantEntry<'a, K, V, S> {
11321132
/// Gets a reference to the entry key
11331133
///
11341134
/// # Examples

0 commit comments

Comments
 (0)