diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-02 00:13:20 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-02 00:13:20 -0500 |
commit | 101855f962635a2b369b55efe65c4ca7e40e0cba (patch) | |
tree | 3bf6035b19f689413f3cf912cbe9bac0cfbad5bf /src/util.rs | |
parent | 0306a548a646cc11662ef0025d91997ac9edf184 (diff) | |
download | advent-of-code-101855f962635a2b369b55efe65c4ca7e40e0cba.tar.gz advent-of-code-101855f962635a2b369b55efe65c4ca7e40e0cba.zip |
fix macro
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index 9cc3d6a..2ae4f1a 100644 --- a/src/util.rs +++ b/src/util.rs @@ -3,6 +3,7 @@ use std::io::{BufRead as _, Read as _}; macro_rules! data { () => {{ + use anyhow::Context as _; let file = crate::util::src_file_to_data_file(&std::file!()); std::fs::File::open(file.clone()) .with_context(|| format!("couldn't find data file {}", file)) |