From 30bbd0f7c88c4b4370035f35e577f55c0155321c Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 14 Jun 2024 00:03:37 -0700 Subject: [PATCH] test: Suppress needless_update for unit tests --- src/write.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/write.rs b/src/write.rs index b0b38627..1b0a96ae 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1926,6 +1926,8 @@ 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 defs with and without zopfli_buffer_size mod test { use super::{FileOptions, ZipWriter}; use crate::compression::CompressionMethod;