summaryrefslogtreecommitdiff
path: root/2024_rust/src/bin/day2.rs
diff options
context:
space:
mode:
Diffstat (limited to '2024_rust/src/bin/day2.rs')
-rw-r--r--2024_rust/src/bin/day2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/2024_rust/src/bin/day2.rs b/2024_rust/src/bin/day2.rs
index 92d288f..05d5b75 100644
--- a/2024_rust/src/bin/day2.rs
+++ b/2024_rust/src/bin/day2.rs
@@ -20,7 +20,7 @@ fn is_safe(levels: &[u32]) -> bool {
return false;
}
}
- return true;
+ true
}
fn p1(input: &str) -> String {
@@ -46,7 +46,7 @@ fn is_safe_with_dampener(levels: &[u32]) -> bool {
return true;
}
}
- return false;
+ false
}
fn p2(input: &str) -> String {