fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-itu / src / codecs / h264 / sets.rs
index 5bd51a955e395abb3c96405203901648779fff0d..b02faf121df592c21f90bccfb1cb8da0fa56384b 100644 (file)
@@ -50,7 +50,7 @@ pub fn is_high_profile(profile: u8) -> bool {
     }
 }
 
-#[allow(clippy::cyclomatic_complexity)]
+#[allow(clippy::cognitive_complexity)]
 pub fn parse_sps(src: &[u8]) -> DecoderResult<SeqParameterSet> {
     let mut br = BitReader::new(src, BitReaderMode::BE);
     let mut sps: SeqParameterSet = unsafe { std::mem::zeroed() };