1 2 3 4 5 6 7 8 9 10 11 12
#![allow(unused_macros)] #![allow(dead_code)] #[macro_use] pub mod parse; pub mod grid; pub fn data(year: u16, day: u16) -> anyhow::Result<std::fs::File> { std::fs::File::open(format!("data/{}/{}.txt", year, day)) .map_err(|e| anyhow::anyhow!(e)) }