Skip to content

Commit 1e53898

Browse files
committed
Fix breaking the 'clean' subcommand caused replacing a single-letter variable with the same value in two contexts where it was used differently. That's why you don't use "m" as a variable for hundreds of lines in an outer function, and re-use it in closures several times in the same function. Sheesh.
1 parent 6b72586 commit 1e53898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Arguments:
244244
Subcommand::Doc { paths: paths }
245245
}
246246
"clean" => {
247-
if matches.free.len() > 0 {
247+
if paths.len() > 0 {
248248
println!("\nclean takes no arguments\n");
249249
usage(1, &opts, &subcommand_help, &extra_help);
250250
}

0 commit comments

Comments
 (0)