summaryrefslogtreecommitdiffstats
path: root/src/util.rs
blob: 0bd31e5a20cc171d49439e1cce67bcc4ce8bae1d (plain) (blame)
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))
}