diff --git a/src/v2020/mod.rs b/src/v2020/mod.rs index 6fa6ab5..f651977 100644 --- a/src/v2020/mod.rs +++ b/src/v2020/mod.rs @@ -60,7 +60,7 @@ pub const MAXIMUM_MAX: u32 = 16_777_216; // the deduplication ratio is slightly improved when the mask bits are spread // relatively evenly, hence these seemingly "magic" values. // -pub(self) const MASKS: [u64; 26] = [ +pub const MASKS: [u64; 26] = [ 0, // padding 0, // padding 0, // padding @@ -240,7 +240,7 @@ const GEAR_LS: [u64; 256] = [ // Find the next chunk cut point in the source. #[allow(clippy::too_many_arguments)] -pub(self) fn cut( +pub fn cut( source: &[u8], min_size: usize, avg_size: usize, @@ -722,7 +722,7 @@ impl Iterator for StreamCDC { /// /// Base-2 logarithm function for unsigned 32-bit integers. /// -pub(self) fn logarithm2(value: u32) -> u32 { +pub fn logarithm2(value: u32) -> u32 { f64::from(value).log2().round() as u32 }