Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- nightly
# When changing this value don't forget to change the `package.rust-version` field in
# `roaring/Cargo.toml`!!!
- 1.80.1
- 1.82.0
env:
RUSTFLAGS: "-C target-cpu=native -C opt-level=3"

Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
- stable
- beta
- nightly
- 1.80.1
- 1.82.0
features:
- default
- no-std
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
run: cargo test -p roaring --features serde

- name: Test Benches
if: matrix.rust != '1.80.1' && matrix.features == 'default'
if: matrix.rust != '1.82.0' && matrix.features == 'default'
run: cargo test -p benchmarks --benches

- name: Test no default features
Expand Down
4 changes: 2 additions & 2 deletions roaring/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "roaring"
version = "0.11.2"
version = "0.11.3"
# When changing this value don't forget to change the MSRV test in `.github/workflows/test.yml`!!
rust-version = "1.80.1"
rust-version = "1.82.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.com>"]
description = "A better compressed bitset - pure Rust implementation"

Expand Down
4 changes: 2 additions & 2 deletions roaring/src/bitmap/store/array_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl ArrayStore {
}

pub fn push(&mut self, index: u16) -> bool {
if self.max().map_or(true, |max| max < index) {
if self.max().is_none_or(|max| max < index) {
self.vec.push(index);
true
} else {
Expand Down Expand Up @@ -493,7 +493,7 @@ impl SubAssign<&Self> for ArrayStore {
let mut i = 0;
self.retain(|x| {
i += rhs.iter().skip(i).position(|y| *y >= x).unwrap_or(rhs.vec.len());
rhs.vec.get(i).map_or(true, |y| x != *y)
rhs.vec.get(i).is_none_or(|y| x != *y)
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion roaring/src/bitmap/store/bitmap_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl BitmapStore {
}

pub fn push(&mut self, index: u16) -> bool {
if self.max().map_or(true, |max| max < index) {
if self.max().is_none_or(|max| max < index) {
self.insert(index);
true
} else {
Expand Down