2019: day01: part 1

This commit is contained in:
Antoine Martin 2019-12-01 16:03:34 +01:00
parent f743d60f85
commit 22fcfdae4f
7 changed files with 193 additions and 0 deletions

8
aoc2019/src/lib.rs Normal file
View file

@ -0,0 +1,8 @@
pub mod day01;
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
#[macro_export]
macro_rules! err {
($($string:expr),+) => (Box::<dyn Error>::from(format!($($string),+)))
}