File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2121 - nightly
2222 # When changing this value don't forget to change the `package.rust-version` field in
2323 # `roaring/Cargo.toml`!!!
24- - 1.80.1
24+ - 1.82.0
2525 env :
2626 RUSTFLAGS : " -C target-cpu=native -C opt-level=3"
2727
6464 - stable
6565 - beta
6666 - nightly
67- - 1.80.1
67+ - 1.82.0
6868 features :
6969 - default
7070 - no-std
9898 run : cargo test -p roaring --features serde
9999
100100 - name : Test Benches
101- if : matrix.rust != '1.80.1 ' && matrix.features == 'default'
101+ if : matrix.rust != '1.82.0 ' && matrix.features == 'default'
102102 run : cargo test -p benchmarks --benches
103103
104104 - name : Test no default features
Original file line number Diff line number Diff line change 11[package ]
22name = " roaring"
3- version = " 0.11.2 "
3+ version = " 0.11.3 "
44# When changing this value don't forget to change the MSRV test in `.github/workflows/test.yml`!!
5- rust-version = " 1.80.1 "
5+ rust-version = " 1.82.0 "
66authors = [" Wim Looman <wim@nemo157.com>" , " Kerollmops <kero@meilisearch.com>" ]
77description = " A better compressed bitset - pure Rust implementation"
88
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ impl ArrayStore {
150150 }
151151
152152 pub fn push ( & mut self , index : u16 ) -> bool {
153- if self . max ( ) . map_or ( true , |max| max < index) {
153+ if self . max ( ) . is_none_or ( |max| max < index) {
154154 self . vec . push ( index) ;
155155 true
156156 } else {
@@ -493,7 +493,7 @@ impl SubAssign<&Self> for ArrayStore {
493493 let mut i = 0 ;
494494 self . retain ( |x| {
495495 i += rhs. iter ( ) . skip ( i) . position ( |y| * y >= x) . unwrap_or ( rhs. vec . len ( ) ) ;
496- rhs. vec . get ( i) . map_or ( true , |y| x != * y)
496+ rhs. vec . get ( i) . is_none_or ( |y| x != * y)
497497 } ) ;
498498 }
499499 }
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ impl BitmapStore {
155155 }
156156
157157 pub fn push ( & mut self , index : u16 ) -> bool {
158- if self . max ( ) . map_or ( true , |max| max < index) {
158+ if self . max ( ) . is_none_or ( |max| max < index) {
159159 self . insert ( index) ;
160160 true
161161 } else {
You can’t perform that action at this time.
0 commit comments