Skip to content

Commit

Permalink
Day1 clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
1adept committed Dec 21, 2023
1 parent 0df1529 commit a20d002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/day1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::num;


use crate::util::{Day, Solution};

Expand All @@ -9,7 +9,7 @@ impl Day for Day1 {
let (part1, part2) = input
.lines()
.take_while(|line| !line.is_empty())
.map(|line| (part1_line(&line), part2_line(line)))
.map(|line| (part1_line(line), part2_line(line)))
.reduce(|(p1, p2), (part1, part2)| (p1 + part1, p2 + part2))
.expect("Failed to solve");

Expand Down

0 comments on commit a20d002

Please sign in to comment.