From c1388477c76cdad94503edc216e5cf5c9a9bc31c Mon Sep 17 00:00:00 2001 From: Moritz Firsching Date: Tue, 24 Dec 2024 10:41:07 +0100 Subject: [PATCH] cleanup a few `allow(unused)` (#76) --- jxl/src/entropy_coding/ans.rs | 1 - jxl/src/entropy_coding/decode.rs | 1 - jxl/src/util.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/jxl/src/entropy_coding/ans.rs b/jxl/src/entropy_coding/ans.rs index 57f3c48..487f7a3 100644 --- a/jxl/src/entropy_coding/ans.rs +++ b/jxl/src/entropy_coding/ans.rs @@ -19,7 +19,6 @@ struct AnsHistogram { log_bucket_size: usize, bucket_mask: u32, // For optimizing fast-lossless case. - #[allow(unused)] single_symbol: Option, } diff --git a/jxl/src/entropy_coding/decode.rs b/jxl/src/entropy_coding/decode.rs index ee122fd..c5b369f 100644 --- a/jxl/src/entropy_coding/decode.rs +++ b/jxl/src/entropy_coding/decode.rs @@ -6,7 +6,6 @@ use jxl_macros::UnconditionalCoder; use crate::bit_reader::BitReader; -#[allow(unused_imports)] use crate::entropy_coding::ans::*; use crate::entropy_coding::context_map::*; use crate::entropy_coding::huffman::*; diff --git a/jxl/src/util.rs b/jxl/src/util.rs index 9ac8ca9..c4c2b3c 100644 --- a/jxl/src/util.rs +++ b/jxl/src/util.rs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#[allow(unused)] +#[cfg(test)] pub mod test; mod bits; @@ -14,7 +14,6 @@ pub mod tracing_wrappers; mod vec_helpers; pub use bits::*; -#[allow(unused)] pub use concat_slice::*; pub use log2::*; pub use shift_right_ceil::*;