Reformatted

This commit is contained in:
2023-05-26 10:02:22 +02:00
parent b922b808fc
commit cfb3ae497e
7 changed files with 29 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
use std::collections::HashSet;
use crate::utils;
use std::collections::HashSet;
pub fn task1() {
let frequency: i32 = utils::read_file("input/day01.txt")
@@ -23,7 +23,8 @@ pub fn task2() {
} else {
Some((*current, true))
}
}).find(|state| state.1);
})
.find(|state| state.1);
println!("Part 2: {} was there already!", final_state.unwrap().0);
}