cosmetic(cp): use the variable instead of the string

This commit is contained in:
Sylvestre Ledru
2020-12-08 23:19:51 +01:00
committed by GitHub
parent 0cfb83a040
commit d21acc4621
+1 -1
View File
@@ -468,7 +468,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
let options = crash_if_err!(EXIT_ERR, Options::from_matches(&matches));
let paths: Vec<String> = matches
.values_of("paths")
.values_of(OPT_PATHS)
.map(|v| v.map(ToString::to_string).collect())
.unwrap_or_default();