X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-codec-support%2Fsrc%2Fvq%2Fgeneric_elbg.rs;h=32cbb82c790ab9a29ba003f29603a3392622fe46;hb=01551716da227274258c42e4bea5ccabdc234eae;hp=87ea16e90560935816658f9ac5d9c29ddf770886;hpb=03011b993dc4873b39d981f62abc01591a0544f7;p=nihav.git diff --git a/nihav-codec-support/src/vq/generic_elbg.rs b/nihav-codec-support/src/vq/generic_elbg.rs index 87ea16e..32cbb82 100644 --- a/nihav-codec-support/src/vq/generic_elbg.rs +++ b/nihav-codec-support/src/vq/generic_elbg.rs @@ -148,7 +148,7 @@ impl> ELBG { 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;