Skip to content

Commit

Permalink
Fix warnings when testing with nightly
Browse files Browse the repository at this point in the history
Keep testing arbitrary implementations as pub(crate). This avoids warnings
about undocumented public APIs
  • Loading branch information
Dr-Emann committed Oct 10, 2024
1 parent 9e743c4 commit 841004b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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/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

0 comments on commit 841004b

Please sign in to comment.