fix clippy warnings
[nihav.git] / nihav-qt / src / codecs / qdm2qmf.rs
index bd018aa7717e24675670bada16de0f91f3f09224..d8cafa24910221c03e10c26da740e41403c3a83d 100644 (file)
@@ -359,7 +359,7 @@ unimplemented!();
                             }
                             q = q.wrapping_sub(self.grid_3_quant[ch][band - 4]);
                         }
-                        self.tone_idx[ch][band][i] = q as i8;
+                        self.tone_idx[ch][band][i] = q;
                         if q > 0 || (self.is_intra && q == 0) {
                             self.tone_scale[ch][band][i] = TONE_SCALES[0][(q & 0x3F) as usize];
                         } else {
@@ -370,7 +370,7 @@ unimplemented!();
             }
         }
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     fn read_noise_band(&mut self, br: &mut QdmBitReader, ch: usize, band: usize, samples: &mut [f32; 10], signs: &[bool; 16], jstereo: bool) -> DecoderResult<()> {
         let mut type34_first = true;
         let mut type34_pred = 0.0;