Skip to content

Commit e8c96d0

Browse files
committed
Auto merge of #423 - kawadakk:patches/relax-set-raw-table-bounds, r=Amanieu
Relax the trait bounds of `HashSet::raw_table{,_mut}` Removes the trait bounds `T: Eq + Hash, S: BuildHasher` from `HashSet<T, S, A>::raw_table{,_mut}`. Considering that the `HashMap` counterpart doesn't have these bounds, they are likely unintentional.
2 parents 009969a + 5b96822 commit e8c96d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/set.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,9 @@ where
12211221
None => None,
12221222
}
12231223
}
1224+
}
12241225

1226+
impl<T, S, A: Allocator + Clone> HashSet<T, S, A> {
12251227
/// Returns a reference to the [`RawTable`] used underneath [`HashSet`].
12261228
/// This function is only available if the `raw` feature of the crate is enabled.
12271229
///

0 commit comments

Comments
 (0)