fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-duck / src / codecs / truemotion2x.rs
index 7f4ac524062903d4129f13ea9405faeaeb66437c..652b5b06147b9741240f2661d429660bae08a13e 100644 (file)
@@ -277,7 +277,7 @@ impl TM2XDecoder {
 
     #[allow(clippy::int_plus_one)]
     #[allow(clippy::manual_memcpy)]
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     fn decode_frame(&mut self, src: &[u8]) -> DecoderResult<()> {
         let mut mr = MemoryReader::new_read(src);
         let mut br = ByteReader::new(&mut mr);