fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-codec-support / src / vq / generic_elbg.rs
index 87ea16e90560935816658f9ac5d9c29ddf770886..32cbb82c790ab9a29ba003f29603a3392622fe46 100644 (file)
@@ -148,7 +148,7 @@ impl<T: VQElement+Default, TS: VQElementSum<T>> ELBG<T, TS> {
         clu1.calc_dist();
         clu0.dist + clu1.dist
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     pub fn quantise(&mut self, src: &[T], dst: &mut [T]) -> usize {
         if src.is_empty() || dst.len() != self.clusters.len() {
             return 0;