From fd0413d1aeb779d36805f1c8356782e03d2f4d6b Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:03:50 +0000 Subject: [PATCH] Day 11 fix clippy lint --- src/cal/day11.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cal/day11.rs b/src/cal/day11.rs index e0a9fe2..6511784 100644 --- a/src/cal/day11.rs +++ b/src/cal/day11.rs @@ -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 {