From f273c1719c3bc98d9f9fd6d6f702fd46f707d85d Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 14 Dec 2024 13:29:03 +0100 Subject: [PATCH] clippy --- src/day14.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/day14.rs b/src/day14.rs index 99d90ca..4031cd6 100644 --- a/src/day14.rs +++ b/src/day14.rs @@ -45,7 +45,6 @@ fn solve_part1(input: &str, rounds: i64, width: i64, height: i64) -> RiddleResul .filter(|&&((px, py), _)| px > width / 2 && py > height / 2) .count(); - if upper_left + lower_left == upper_right + lower_right {} upper_left * lower_left * upper_right * lower_right } @@ -105,7 +104,9 @@ fn part2(input: &str) -> RiddleResult { unreachable!() } -fn printr(robots: &[((i64, i64), (i64, i64))], width: i64, height: i64) { +type Robot = ((i64, i64), (i64, i64)); + +fn printr(robots: &[Robot], width: i64, height: i64) { for y in 0..height { for x in 0..width { let c = robots