Skip to content

Commit

Permalink
Merge branch 'main' into fix/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker authored Oct 11, 2024
2 parents 4e344a8 + 4962452 commit 3e562e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion roaring/src/bitmap/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mod test {

impl RoaringBitmap {
prop_compose! {
pub fn arbitrary()(bitmap in (0usize..=16).prop_flat_map(containers)) -> RoaringBitmap {
pub(crate) fn arbitrary()(bitmap in (0usize..=16).prop_flat_map(containers)) -> RoaringBitmap {
bitmap
}
}
Expand Down
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
2 changes: 1 addition & 1 deletion roaring/src/treemap/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod test {

impl RoaringTreemap {
prop_compose! {
pub fn arbitrary()(map in btree_map(0u32..=16, RoaringBitmap::arbitrary(), 0usize..=16)) -> RoaringTreemap {
pub(crate) fn arbitrary()(map in btree_map(0u32..=16, RoaringBitmap::arbitrary(), 0usize..=16)) -> RoaringTreemap {
// we’re NEVER supposed to start with a treemap containing empty bitmaps
// Since we can’t configure this in arbitrary we’re simply going to ignore the generated empty bitmaps
let map = map.into_iter().filter(|(_, v)| !v.is_empty()).collect();
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 3e562e7

Please sign in to comment.