diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-12-03 02:39:18 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-12-03 02:39:18 -0500 |
commit | 7a2dc8423a5981dfffae740dd1d1e8d55d75cccc (patch) | |
tree | 00b0c0c0a32ad515b5a8364ee6e6bad53880a8d5 /src/2020/mod.rs | |
parent | 11db8a9b68cf047320b5d18081cbb692d8b95900 (diff) | |
download | advent-of-code-7a2dc8423a5981dfffae740dd1d1e8d55d75cccc.tar.gz advent-of-code-7a2dc8423a5981dfffae740dd1d1e8d55d75cccc.zip |
day 3
Diffstat (limited to 'src/2020/mod.rs')
-rw-r--r-- | src/2020/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2020/mod.rs b/src/2020/mod.rs index 87ceb55..ff08a7e 100644 --- a/src/2020/mod.rs +++ b/src/2020/mod.rs @@ -2,6 +2,8 @@ mod day1; #[path = "2/mod.rs"] mod day2; +#[path = "3/mod.rs"] +mod day3; pub fn run(day: u8, puzzle: u8) -> anyhow::Result<()> { match (day, puzzle) { @@ -9,6 +11,8 @@ pub fn run(day: u8, puzzle: u8) -> anyhow::Result<()> { (1, 2) => day1::part2(), (2, 1) => day2::part1(), (2, 2) => day2::part2(), + (3, 1) => day3::part1(), + (3, 2) => day3::part2(), _ => Err(anyhow::anyhow!("unknown puzzle {}-{}", day, puzzle)), } } |