summaryrefslogtreecommitdiffstats
path: root/src/2022/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/2022/mod.rs')
-rw-r--r--src/2022/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2022/mod.rs b/src/2022/mod.rs
index e6faf0c..2be116a 100644
--- a/src/2022/mod.rs
+++ b/src/2022/mod.rs
@@ -16,6 +16,8 @@ mod day6;
mod day7;
#[path = "8/mod.rs"]
mod day8;
+#[path = "9/mod.rs"]
+mod day9;
// NEXT MOD
pub fn run(day: u8, puzzle: u8) -> Result<i64> {
@@ -37,6 +39,8 @@ pub fn run(day: u8, puzzle: u8) -> Result<i64> {
(7, 2) => day7::part2(day7::parse(parse::data(2022, 7)?)?),
(8, 1) => day8::part1(day8::parse(parse::data(2022, 8)?)?),
(8, 2) => day8::part2(day8::parse(parse::data(2022, 8)?)?),
+ (9, 1) => day9::part1(day9::parse(parse::data(2022, 9)?)?),
+ (9, 2) => day9::part2(day9::parse(parse::data(2022, 9)?)?),
// NEXT PART
_ => Err(anyhow!("unknown puzzle {}-{}", day, puzzle)),
}