From 44fb8bc6a4d31c7dc42a883ff4c1d2afafb1e352 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2021/4/src/main.rs b/2021/4/src/main.rs index 81f0ccb..962dc2a 100644 --- a/2021/4/src/main.rs +++ b/2021/4/src/main.rs @@ -96,7 +96,8 @@ fn main() { let that_one_fucker: HashSet = &new_nums - &old_nums; - let sum: i32 = winning_boards.get(that_one_fucker + let sum: i32 = winning_boards.get( + that_one_fucker .iter() .next() .unwrap()