mirror of
https://github.com/supleed2/cch23-8bit.git
synced 2024-12-22 14:05:48 +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")
|
||||
.into_rgb8()
|
||||
.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()
|
||||
.to_string()
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue