fix: cargo fmt
This commit is contained in:
parent
38dc536984
commit
61cc69b124
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ pub fn read_file(folder: &str, day: Day) -> String {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn read_file_part(folder: &str, day: Day, part: u8) -> String {
|
pub fn read_file_part(folder: &str, day: Day, part: u8) -> String {
|
||||||
let cwd = env::current_dir().unwrap();
|
let cwd = env::current_dir().unwrap();
|
||||||
let filepath = cwd.join("data").join(folder).join(format!("{day}-{part}.txt"));
|
let filepath = cwd
|
||||||
|
.join("data")
|
||||||
|
.join(folder)
|
||||||
|
.join(format!("{day}-{part}.txt"));
|
||||||
let f = fs::read_to_string(filepath);
|
let f = fs::read_to_string(filepath);
|
||||||
f.expect("could not open input file")
|
f.expect("could not open input file")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue