Fix 1.67 clippy lints

This commit is contained in:
Jack Grigg
2024-07-30 05:42:54 +00:00
parent 24e6e6ffa6
commit 34011088a0
4 changed files with 9 additions and 15 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use std::io::prelude::*;
const MANPAGES_DIR: &str = "./target/manpages";
fn generate_manpage(page: String, name: &str) {
let file = File::create(format!("{}/{}.1.gz", MANPAGES_DIR, name))
let file = File::create(format!("{MANPAGES_DIR}/{name}.1.gz"))
.expect("Should be able to open file in target directory");
let mut encoder = GzEncoder::new(file, Compression::best());
encoder