A bunch of clippy fixes

This commit is contained in:
Jonathan Behrens committed 2023-08-20 13:32:08 -07:00
1 parent daa0e3eabf
commit 60f866c119
11 files changed
+59 -61

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@ pub enum Compressor {
impl Default for Compressor {
/// The default compression strategy does not apply any compression.
fn default() -> Self {
Compressor::Uncompressed(Uncompressed::default())
Compressor::Uncompressed(Uncompressed)
}
}
@@ -55,6 +55,6 @@ impl CompressionAlgorithm for Compressor {
#[cfg(test)]
mod tests {
pub const TEST_DATA: &'static [u8] =
pub const TEST_DATA: &[u8] =
b"This is a string for checking various compression algorithms.";
}