Skip to content

Commit a2d6232

Browse files
committed
fix name variable
1 parent 29512d3 commit a2d6232

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bin/uudoc.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ fn main() -> io::Result<()> {
290290

291291
println!("Writing to utils");
292292
for (&name, (_, command)) in utils {
293-
let mut usage_name = name.to_string();
294293
let name = match name {
295294
"[" => {
296295
continue;
@@ -299,9 +298,9 @@ fn main() -> io::Result<()> {
299298
| "sha3sum" | "sha3-224sum" | "sha3-256sum" | "sha3-384sum" | "sha3-512sum"
300299
| "shake128sum" | "shake256sum" | "b2sum" | "b3sum" => {
301300
// These use the hashsum
302-
usage_name = "hashsum".to_string();
301+
"hashsum"
303302
}
304-
_ => {}
303+
n => n
305304
};
306305
let p = format!("docs/src/utils/{name}.md");
307306

0 commit comments

Comments
 (0)