From c9a483b2f4e45be562559b28f795e51d8fb168c0 Mon Sep 17 00:00:00 2001 From: Brandon Scott Date: Fri, 9 Dec 2022 01:47:05 -0600 Subject: [PATCH] Remove pointless variable assignment. --- rust/src/day1.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/src/day1.rs b/rust/src/day1.rs index a90ef75..f9fc5c1 100644 --- a/rust/src/day1.rs +++ b/rust/src/day1.rs @@ -23,7 +23,6 @@ pub fn run() { if current_elf_calories > 0 { println!("Adding to current elf total: {:?}", current_elf_calories); calorie_totals.push(current_elf_calories); - current_elf_calories = 0; } calorie_totals.sort();