Skip to content

Commit 9f36913

Browse files
committed
[2024] Fix clippy lints
1 parent f9ebfa3 commit 9f36913

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

aoc_2024/src/day_11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn solve(nums: Vec<u64>, iters: usize) -> u64 {
3535
counts = next;
3636
}
3737

38-
counts.values().sum::<u64>().into()
38+
counts.values().sum::<u64>()
3939
}
4040

4141
fn parse(input: &str) -> Vec<u64> {

aoc_2024/src/day_13.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Problem {
7777
}
7878

7979
fn solve(&self) -> u64 {
80-
self.cases.iter().map(|x| x.cheapest()).sum::<u64>().into()
80+
self.cases.iter().map(|x| x.cheapest()).sum::<u64>()
8181
}
8282

8383
fn part_b(mut self) -> Self {

aoc_2024/src/day_15.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ impl Problem {
9696
self.idx += 1;
9797

9898
let new = dir.advance(self.pos);
99-
if {
100-
if part_b {
101-
self.push_b(new, dir)
102-
} else {
103-
self.push(new, dir)
104-
}
99+
if if part_b {
100+
self.push_b(new, dir)
101+
} else {
102+
self.push(new, dir)
105103
} {
106104
self.pos = new;
107105
}

0 commit comments

Comments
 (0)