We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945754f commit 2b7a513Copy full SHA for 2b7a513
src/raw/mod.rs
@@ -1226,8 +1226,14 @@ impl RawTableInner {
1226
self.bucket_mask == 0
1227
}
1228
1229
+ #[inline]
1230
unsafe fn next_deleted(&self, start: usize) -> Option<usize> {
- (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
1237
1238
1239
#[allow(clippy::mut_mut)]
0 commit comments