Skip to content

Commit 2b7a513

Browse files
author
Markus Westerlind
committed
inline next_deleted
1 parent 945754f commit 2b7a513

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/raw/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,14 @@ impl RawTableInner {
12261226
self.bucket_mask == 0
12271227
}
12281228

1229+
#[inline]
12291230
unsafe fn next_deleted(&self, start: usize) -> Option<usize> {
1230-
(start..self.buckets()).find(|&i| *self.ctrl(i) == DELETED)
1231+
for i in start..self.buckets() {
1232+
if *self.ctrl(i) == DELETED {
1233+
return Some(i);
1234+
}
1235+
}
1236+
None
12311237
}
12321238

12331239
#[allow(clippy::mut_mut)]

0 commit comments

Comments
 (0)