Skip to content

Commit c95593a

Browse files
committed
Make clippy happy
1 parent 95399a7 commit c95593a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

roaring/src/bitmap/inherent.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,16 +400,13 @@ 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) {
403+
Ok(loc)
404+
if self.containers[loc].remove(index) => {
405405
if self.containers[loc].is_empty() {
406406
self.containers.remove(loc);
407407
}
408408
true
409-
} else {
410-
false
411409
}
412-
}
413410
_ => false,
414411
}
415412
}

0 commit comments

Comments
 (0)