1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 options = crash_if_err!(EXIT_ERR, Options::from_matches(&matches));
let paths: Vec<String> = matches let paths: Vec<String> = matches
.values_of("paths") .values_of(OPT_PATHS)
.map(|v| v.map(ToString::to_string).collect()) .map(|v| v.map(ToString::to_string).collect())
.unwrap_or_default(); .unwrap_or_default();