From 69c1b64433c47352d6c521ef6af8b0b8333dccdc Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 19 Feb 2024 18:42:30 +0100 Subject: [PATCH] clippy --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 45bc7f1..73856f1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,18 +119,18 @@ fn main() { fs::write(&format!("output/{law_name}.html"), &site).expect("Unable to write file"); } let style = fs::read_to_string("templates/style.css").unwrap(); - fs::write(&format!("output/style.css"), &style).expect("Unable to write file"); + fs::write("output/style.css", style).expect("Unable to write file"); let style = fs::read_to_string("templates/pico.min.css").unwrap(); - fs::write(&format!("output/pico.min.css"), &style).expect("Unable to write file"); + fs::write("output/pico.min.css", style).expect("Unable to write file"); let js = fs::read_to_string("templates/app.js").unwrap(); - fs::write(&format!("output/app.js"), &js).expect("Unable to write file"); + fs::write("output/app.js", js).expect("Unable to write file"); let js = fs::read_to_string("templates/toggle.js").unwrap(); - fs::write(&format!("output/toggle.js"), &js).expect("Unable to write file"); + fs::write("output/toggle.js", js).expect("Unable to write file"); let mut index = fs::read_to_string("templates/index.html").unwrap(); index = index.replace("{{content}}", &li_of_files); - fs::write(&format!("output/index.html"), &index).expect("Unable to write file"); + fs::write("output/index.html", &index).expect("Unable to write file"); }