Skip to content

Commit 61cc69b

Browse files
committed
fix: cargo fmt
1 parent 38dc536 commit 61cc69b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/template/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ pub fn read_file(folder: &str, day: Day) -> String {
2323
#[must_use]
2424
pub fn read_file_part(folder: &str, day: Day, part: u8) -> String {
2525
let cwd = env::current_dir().unwrap();
26-
let filepath = cwd.join("data").join(folder).join(format!("{day}-{part}.txt"));
26+
let filepath = cwd
27+
.join("data")
28+
.join(folder)
29+
.join(format!("{day}-{part}.txt"));
2730
let f = fs::read_to_string(filepath);
2831
f.expect("could not open input file")
2932
}

0 commit comments

Comments
 (0)