Skip to content

Commit 699fb6d

Browse files
committed
Make clippy happy
1 parent 95399a7 commit 699fb6d

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

roaring/src/bitmap/inherent.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,11 @@ impl RoaringBitmap {
400400
pub fn remove(&mut self, value: u32) -> bool {
401401
let (key, index) = util::split(value);
402402
match self.containers.binary_search_by_key(&key, |c| c.key) {
403-
Ok(loc) => {
404-
if self.containers[loc].remove(index) {
405-
if self.containers[loc].is_empty() {
406-
self.containers.remove(loc);
407-
}
408-
true
409-
} else {
410-
false
403+
Ok(loc) if self.containers[loc].remove(index) => {
404+
if self.containers[loc].is_empty() {
405+
self.containers.remove(loc);
411406
}
407+
true
412408
}
413409
_ => false,
414410
}

0 commit comments

Comments
 (0)