Skip to content

Commit ea58f73

Browse files
committed
saved a line
1 parent 499c906 commit ea58f73

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

day06/src/main.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ fn parse(fname: &str) -> Fish {
66
.split(",")
77
.into_iter()
88
.map(|s| s.trim().parse::<usize>().unwrap())
9-
.fold([0u128; 9], |acc, val| {
10-
let mut new_acc = acc;
11-
new_acc[val] += 1;
12-
new_acc
9+
.fold([0u128; 9], |mut acc, val| {
10+
acc[val] += 1;
11+
acc
1312
})
1413
}
1514

0 commit comments

Comments
 (0)