Skip to content

Commit

Permalink
Make it compile on rust 1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
grelner committed Aug 6, 2024
1 parent df0b3cd commit c7f02c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap/store/array_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl ArrayStore {
match self.vec.as_slice().binary_search(&n) {
Ok(index) | Err(index) => {
if index == self.vec.len() {
Default::default()
[].iter()
} else {
(&self.vec[index..]).into_iter()

Check failure on line 235 in src/bitmap/store/array_store/mod.rs

View workflow job for this annotation

GitHub Actions / ci (nightly)

this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
}
Expand Down

0 comments on commit c7f02c6

Please sign in to comment.