Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy #160

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading