Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Nov 5, 2024
1 parent 535b70d commit 7520de7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/block/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ fn copy_literals_wild(output: &mut impl Sink, input: &[u8], input_start: usize,
/// `get_maximum_output_size`.
///
/// Returns the number of bytes written (compressed) into `output`.
#[inline]
pub(crate) fn compress_into_sink_with_dict<const USE_DICT: bool>(
input: &[u8],
Expand Down
2 changes: 1 addition & 1 deletion src/block/hashtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use alloc::boxed::Box;
///
/// Every four bytes is assigned an entry. When this number is lower, fewer entries exists, and
/// thus collisions are more likely, hurting the compression ratio.
///
/// hashes and right shifts to a maximum value of 16bit, 65535
/// The right shift is done in order to not exceed, the hashtables capacity
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl<'a> SliceSink<'a> {
}
}

impl<'a> Sink for SliceSink<'a> {
impl Sink for SliceSink<'_> {
/// Returns a raw ptr to the first unfilled byte of the Sink. Analogous to `[pos..].as_ptr()`.
#[inline]
#[cfg(not(all(feature = "safe-encode", feature = "safe-decode")))]
Expand Down

0 comments on commit 7520de7

Please sign in to comment.