We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38dc536 commit 61cc69bCopy full SHA for 61cc69b
src/template/mod.rs
@@ -23,7 +23,10 @@ pub fn read_file(folder: &str, day: Day) -> String {
23
#[must_use]
24
pub fn read_file_part(folder: &str, day: Day, part: u8) -> String {
25
let cwd = env::current_dir().unwrap();
26
- let filepath = cwd.join("data").join(folder).join(format!("{day}-{part}.txt"));
+ let filepath = cwd
27
+ .join("data")
28
+ .join(folder)
29
+ .join(format!("{day}-{part}.txt"));
30
let f = fs::read_to_string(filepath);
31
f.expect("could not open input file")
32
}
0 commit comments