X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-codec-support%2Fsrc%2Fvq%2Fgeneric_elbg.rs;h=32cbb82c790ab9a29ba003f29603a3392622fe46;hp=87ea16e90560935816658f9ac5d9c29ddf770886;hb=b7c882c1ce6f86c07c2340751200e3a060942826;hpb=01f55c6a507164e6292867d2438d08d1ee0f8e55 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;