diff --git a/src/extra_fields/zipinfo_utf8.rs b/src/extra_fields/zipinfo_utf8.rs index 43f42213..ca89d0d1 100644 --- a/src/extra_fields/zipinfo_utf8.rs +++ b/src/extra_fields/zipinfo_utf8.rs @@ -15,7 +15,7 @@ impl UnicodeExtraField { /// Verifies the checksum and returns the content. pub fn unwrap_valid(self) -> ZipResult> { let mut crc32 = crc32fast::Hasher::new(); - crc32.update(&*self.content); + crc32.update(&self.content); let actual_crc32 = crc32.finalize(); if self.crc32 != actual_crc32 { return Err(ZipError::InvalidArchive( diff --git a/src/write.rs b/src/write.rs index ca09250f..e8c6b146 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1925,7 +1925,7 @@ const EXTRA_FIELD_MAPPING: [u16; 48] = [ #[cfg(test)] #[allow(unknown_lints)] // needless_update is new in clippy pre 1.29.0 -#[allow(needless_update)] // So we can use the same FileOptions decls with and without zopfli_buffer_size +#[allow(clippy::needless_update)] // So we can use the same FileOptions decls with and without zopfli_buffer_size mod test { use super::{FileOptions, ZipWriter}; use crate::compression::CompressionMethod;