Skip to content

Commit

Permalink
Also fix clippy warnings on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Oct 11, 2024
1 parent 841004b commit 55a0b18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roaring/src/bitmap/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl IntoIterator for Container {
}
}

impl<'a> Iterator for Iter<'a> {
impl Iterator for Iter<'_> {
type Item = u32;
fn next(&mut self) -> Option<u32> {
self.inner.next().map(|i| util::join(self.key, i))
Expand Down
2 changes: 1 addition & 1 deletion roaring/src/bitmap/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ impl PartialEq for Store {
}
}

impl<'a> Iterator for Iter<'a> {
impl Iterator for Iter<'_> {
type Item = u16;

fn next(&mut self) -> Option<u16> {
Expand Down
6 changes: 3 additions & 3 deletions roaring/src/treemap/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct To64Iter<'a> {
inner: Iter32<'a>,
}

impl<'a> Iterator for To64Iter<'a> {
impl Iterator for To64Iter<'_> {
type Item = u64;
fn next(&mut self) -> Option<u64> {
self.inner.next().map(|n| util::join(self.hi, n))
Expand Down Expand Up @@ -109,7 +109,7 @@ pub struct IntoIter {
size_hint: u64,
}

impl<'a> Iter<'a> {
impl Iter<'_> {
fn new(map: &BTreeMap<u32, RoaringBitmap>) -> Iter {
let size_hint: u64 = map.iter().map(|(_, r)| r.len()).sum();
let i = map.iter().flat_map(to64iter as _);
Expand All @@ -125,7 +125,7 @@ impl IntoIter {
}
}

impl<'a> Iterator for Iter<'a> {
impl Iterator for Iter<'_> {
type Item = u64;

fn next(&mut self) -> Option<u64> {
Expand Down

0 comments on commit 55a0b18

Please sign in to comment.