From 6f6b8c1d6223067e640534be9cc619b8dbe9aa0e Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 2 Dec 2024 11:45:29 -0600 Subject: [PATCH] Remove empty if --- 2024/rust/src/day2.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/2024/rust/src/day2.rs b/2024/rust/src/day2.rs index 3f9de44..1ce19e3 100644 --- a/2024/rust/src/day2.rs +++ b/2024/rust/src/day2.rs @@ -55,7 +55,6 @@ impl Report { fn is_safe_with_any_single_level_removed(&self) -> bool { for i in 0..self.levels.len() { - if i > 0 {} if self.is_safe(Some(i)) { return true; }