From d205feea5f61e3855394944346f5352f89b51867 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 8 Nov 2024 18:38:06 +0100 Subject: [PATCH] nihav_llaudio: refresh clippy warnings --- nihav-llaudio/src/codecs/mod.rs | 1 + nihav-llaudio/src/codecs/tta.rs | 1 + nihav-llaudio/src/lib.rs | 4 ---- 3 files changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.5