fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-core / src / scale / palette / elbg.rs
index 8b67a513fdc84797b33aa103d6a57f9d7bde4a04..a9704f9cb165987fbedcf7f1421c8f9bd9a6f1c9 100644 (file)
@@ -195,7 +195,7 @@ impl ELBG {
         clu1.calc_dist();
         clu0.dist + clu1.dist
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     pub fn quantise(&mut self, src: &[Pixel], dst: &mut [[u8; 3]; 256]) {
         if src.len() < 3 {
             return;