diff --git a/src/solutions/day_2.rs b/src/solutions/day_2.rs index 44d1b5b..2a89435 100644 --- a/src/solutions/day_2.rs +++ b/src/solutions/day_2.rs @@ -35,7 +35,7 @@ impl LevelValidator { } impl AocSolution for AocDayTwoSolution { - type Output = usize; + type Output = u64; const INPUT: &str = include_str!("../../input/day2.txt"); fn part_one(&self) -> Self::Output { @@ -49,7 +49,7 @@ impl AocSolution for AocDayTwoSolution { .collect::>() }) .filter(|s| validator.is_safe(s)) - .count() + .count() as u64 } fn part_two(&self) -> Self::Output { @@ -63,6 +63,6 @@ impl AocSolution for AocDayTwoSolution { .collect::>() }) .filter(|s| validator.is_safe(s) || validator.is_safe_with_rem(s)) - .count() + .count() as u64 } }