From 4fc0447e3e4e9dd709b163a74b956a50e7abfef1 Mon Sep 17 00:00:00 2001 From: Steph Date: Thu, 1 Dec 2022 21:02:00 +0100 Subject: [PATCH] Johann made me clean up my code a bit (rust) --- 2021/4/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2021/4/src/main.rs b/2021/4/src/main.rs index aa9235b..335ce6e 100644 --- a/2021/4/src/main.rs +++ b/2021/4/src/main.rs @@ -59,13 +59,13 @@ fn main() { .filter(|row| row[0] == -1 && row[1] == -1 && row[2] == -1 && row[3] == -1 && row[4] == -1 ) - .collect::>>() + .collect::>() .len() > 0 || (0..5) .filter(|column| board[0][*column] == -1 && board[1][*column] == -1 && board[2][*column] == -1 && board[3][*column] == -1 && board[4][*column] == -1 - ).collect::>() + ).collect::>() .len() > 0 ).collect();