Skip to content

Commit

Permalink
chore: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfiedler committed Sep 16, 2023
1 parent 2bd3ecb commit 0083320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/v2020/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -722,7 +722,7 @@ impl<R: Read> Iterator for StreamCDC<R> {
///
/// 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
}

Expand Down

0 comments on commit 0083320

Please sign in to comment.