Skip to content

Commit 1605442

Browse files
committed
Remove unnecessary unsafe
1 parent 88c3bc5 commit 1605442

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/raw/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,9 +1596,9 @@ impl<A: Allocator + Clone> RawTableInner<A> {
15961596
/// width, or return an index outside of the table indices range if the table is less
15971597
/// than the group width.
15981598
///
1599-
/// # Safety
1599+
/// # Note
16001600
///
1601-
/// Actually, calling this function is always safe, but attempting to write data at
1601+
/// Calling this function is always safe, but attempting to write data at
16021602
/// the index returned by this function when the table is less than the group width
16031603
/// and if there was not at least one empty bucket in the table will cause immediate
16041604
/// [`undefined behavior`]. This is because in this case the function will return
@@ -1607,7 +1607,7 @@ impl<A: Allocator + Clone> RawTableInner<A> {
16071607
///
16081608
/// [`undefined behavior`]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
16091609
#[inline]
1610-
unsafe fn find_insert_slot(&self, hash: u64) -> usize {
1610+
fn find_insert_slot(&self, hash: u64) -> usize {
16111611
let mut probe_seq = self.probe_seq(hash);
16121612
loop {
16131613
// SAFETY:

0 commit comments

Comments
 (0)