From 61cc69b1246a29df55f2636ca0e96af9600a057f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Fri, 1 Dec 2023 13:49:39 +0100 Subject: [PATCH] fix: cargo fmt --- src/template/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/template/mod.rs b/src/template/mod.rs index a87ceed..d1533e1 100644 --- a/src/template/mod.rs +++ b/src/template/mod.rs @@ -23,7 +23,10 @@ pub fn read_file(folder: &str, day: Day) -> String { #[must_use] pub fn read_file_part(folder: &str, day: Day, part: u8) -> String { 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); f.expect("could not open input file") }