diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs index a8ca25be..6bb8b356 100644 --- a/roaring/src/bitmap/arbitrary.rs +++ b/roaring/src/bitmap/arbitrary.rs @@ -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 } } diff --git a/roaring/src/treemap/arbitrary.rs b/roaring/src/treemap/arbitrary.rs index c7adb7d5..6c8e096a 100644 --- a/roaring/src/treemap/arbitrary.rs +++ b/roaring/src/treemap/arbitrary.rs @@ -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();