projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix clippy warnings for update to rustc 1.46
[nihav.git]
/
nihav-core
/
src
/
scale
/
palette
/
elbg.rs
diff --git
a/nihav-core/src/scale/palette/elbg.rs
b/nihav-core/src/scale/palette/elbg.rs
index 8b67a513fdc84797b33aa103d6a57f9d7bde4a04..a9704f9cb165987fbedcf7f1421c8f9bd9a6f1c9 100644
(file)
--- a/
nihav-core/src/scale/palette/elbg.rs
+++ b/
nihav-core/src/scale/palette/elbg.rs
@@
-195,7
+195,7
@@
impl ELBG {
clu1.calc_dist();
clu0.dist + clu1.dist
}
- #[allow(clippy::c
yclomatic
_complexity)]
+ #[allow(clippy::c
ognitive
_complexity)]
pub fn quantise(&mut self, src: &[Pixel], dst: &mut [[u8; 3]; 256]) {
if src.len() < 3 {
return;