fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-qt / src / codecs / smc.rs
index b78c46ba325dd0bcb8ab808e2fbe4646512d9dcf..16f13b4548d624cf63933ce874ee03c55ec979e3 100644 (file)
@@ -55,7 +55,7 @@ impl NADecoder for SmcDecoder {
             Err(DecoderError::InvalidData)
         }
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     fn decode(&mut self, _supp: &mut NADecoderSupport, pkt: &NAPacket) -> DecoderResult<NAFrameRef> {
         let src = pkt.get_buffer();
         validate!(src.len() >= 2);