From: Kostya Shishkov Date: Fri, 8 Nov 2024 17:38:06 +0000 (+0100) Subject: nihav_llaudio: refresh clippy warnings X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=d205feea5f61e3855394944346f5352f89b51867;p=nihav.git nihav_llaudio: refresh clippy warnings --- diff --git a/nihav-llaudio/src/codecs/mod.rs b/nihav-llaudio/src/codecs/mod.rs index 4f2a21a..d77e06a 100644 --- a/nihav-llaudio/src/codecs/mod.rs +++ b/nihav-llaudio/src/codecs/mod.rs @@ -12,6 +12,7 @@ macro_rules! validate { #[cfg(feature="decoder_ape")] pub mod ape; #[cfg(feature="decoder_ape")] +#[allow(clippy::comparison_chain)] mod apepred; #[cfg(feature="decoder_ape")] mod apereader; diff --git a/nihav-llaudio/src/codecs/tta.rs b/nihav-llaudio/src/codecs/tta.rs index 418b85c..2ef90a5 100644 --- a/nihav-llaudio/src/codecs/tta.rs +++ b/nihav-llaudio/src/codecs/tta.rs @@ -25,6 +25,7 @@ impl Filter { self.dl = [0; 8]; self.predictor = 0; } + #[allow(clippy::comparison_chain)] fn hybrid_filt(&mut self, delta: i32) -> i32 { if self.error < 0 { for (qm, dx) in self.qm.iter_mut().zip(self.dx.iter()) { diff --git a/nihav-llaudio/src/lib.rs b/nihav-llaudio/src/lib.rs index 4079e56..53bfe73 100644 --- a/nihav-llaudio/src/lib.rs +++ b/nihav-llaudio/src/lib.rs @@ -3,12 +3,8 @@ extern crate nihav_core; extern crate nihav_codec_support; #[cfg(any(feature="decoders", feature="encoders"))] -#[allow(clippy::comparison_chain)] -#[allow(clippy::unreadable_literal)] -#[allow(clippy::verbose_bit_mask)] mod codecs; #[cfg(feature="demuxers")] -#[allow(clippy::unreadable_literal)] mod demuxers; #[cfg(feature="muxers")] mod muxers;