[rs] Move 2022_01 solution to y2022 module

This commit is contained in:
Joscha 2022-12-02 12:50:26 +01:00
parent 214eb5b258
commit ff0ebe393b
3 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
mod d01; mod y2022;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::str::FromStr; use std::str::FromStr;
@ -66,7 +66,7 @@ fn main() -> anyhow::Result<()> {
println!("### Solving day {day}"); println!("### Solving day {day}");
let input = fs::read_to_string(file)?; let input = fs::read_to_string(file)?;
match day { match day {
Day::Y2022D01 => d01::solve(input)?, Day::Y2022D01 => y2022::d01::solve(input)?,
} }
} }

1
rs/src/y2022.rs Normal file
View file

@ -0,0 +1 @@
pub mod d01;