mirror of
https://github.com/supleed2/cch23-8bit.git
synced 2024-12-22 22:15:49 +00:00
Day 11 fix clippy lint
This commit is contained in:
parent
79ab2f9787
commit
fd0413d1ae
|
@ -18,7 +18,7 @@ async fn red_pixels(mut multipart: Multipart) -> impl IntoResponse {
|
||||||
.expect("Loading image should not fail")
|
.expect("Loading image should not fail")
|
||||||
.into_rgb8()
|
.into_rgb8()
|
||||||
.pixels()
|
.pixels()
|
||||||
.filter(|&p| p.0[0] as u16 > p.0[1] as u16 + p.0[2] as u16)
|
.filter(|&p| u16::from(p.0[0]) > u16::from(p.0[1]) + u16::from(p.0[2]))
|
||||||
.count()
|
.count()
|
||||||
.to_string()
|
.to_string()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue