fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-llaudio / src / codecs / wavpack.rs
index 07aef40873a37700a8185477d50db4264355722c..0f561acca150392b5f703e6dfceb00e440937f39 100644 (file)
@@ -22,7 +22,7 @@ const WV_FLAG_END_BLOCK: u32    = 1 << 12;
 const WV_FLAG_FALSE_STEREO: u32 = 1 << 30;
 const WV_FLAG_DSD_AUDIO: u32    = 1 << 31;
 
-const WV_STREAM_FLAGS: u32 = 0x8000018B;
+const WV_STREAM_FLAGS: u32 = 0x8000008B;
 
 #[derive(Clone,Copy,Default)]
 struct WVHeader {
@@ -654,7 +654,7 @@ impl WavPackDecoder {
             dstate:     DecorrState::new(),
         }
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     fn decode_block(&mut self, hdr: &WVHeader, src: &[u8], start_ch: usize, abuf: &mut NABufferType) -> DecoderResult<()> {
         let mut mr = MemoryReader::new_read(src);
         let mut br = ByteReader::new(&mut mr);