]> git.nihav.org Git - nihav.git/commitdiff
nihav_llaudio: refresh clippy warnings
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 8 Nov 2024 17:38:06 +0000 (18:38 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 9 Nov 2024 14:30:52 +0000 (15:30 +0100)
nihav-llaudio/src/codecs/mod.rs
nihav-llaudio/src/codecs/tta.rs
nihav-llaudio/src/lib.rs

index 4f2a21a35d70d82f7dd12584edfc6306b6fd7fa9..d77e06ad8d9105418dad75e7c7c0fb74affca811 100644 (file)
@@ -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;
index 418b85c4548a210edd88587f9615907340107a79..2ef90a58a904a0b3246eb763984ca5958053c65b 100644 (file)
@@ -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()) {
index 4079e56ef28c544a5dbceae858dc57d4fd9f7d78..53bfe73eb26126a37b9405f793ea6eb2b4283883 100644 (file)
@@ -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;