diff --git a/AoC_2025/src/days/mod.rs b/AoC_2025/src/days/mod.rs index 7500847..d16c304 100644 --- a/AoC_2025/src/days/mod.rs +++ b/AoC_2025/src/days/mod.rs @@ -1,4 +1,5 @@ pub mod day01; +pub mod day02; pub trait Solution { type Input; diff --git a/AoC_2025/src/main.rs b/AoC_2025/src/main.rs index bd9bab0..f8c8e10 100644 --- a/AoC_2025/src/main.rs +++ b/AoC_2025/src/main.rs @@ -32,13 +32,12 @@ fn run(day: usize, sol: impl Solution) { fn main() { let cli = cli::Cli::parse(); - let sol = match cli.day { - 1 => days::day01::Day01, + match cli.day { + 1 => run(cli.day, days::day01::Day01), + 2 => run(cli.day, days::day02::Day02), _ => { eprintln!("Day {:02} is not implemented yet!", cli.day); process::exit(1); } }; - - run(cli.day, sol); }