Change signature for solution.

This commit is contained in:
2019-08-22 12:28:52 +02:00
parent e949701564
commit 29b5dcdf62
26 changed files with 73 additions and 73 deletions

View File

@@ -14,7 +14,7 @@ impl Day01 {
}
impl common::Solution for Day01 {
fn part1(&mut self, input: &mut io::Read) -> String {
fn part1(&mut self, input: &mut dyn io::Read) -> String {
let reader = io::BufReader::new(input);
let sum: i32 = reader
@@ -25,7 +25,7 @@ impl common::Solution for Day01 {
sum.to_string()
}
fn part2(&mut self, input: &mut io::Read) -> String {
fn part2(&mut self, input: &mut dyn io::Read) -> String {
let reader = io::BufReader::new(input);
let mut freqs = HashSet::new();
freqs.insert(0);