mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 02:08:09 +00:00
refactor/polish ~ fix cargo clippy
complaints (iter.collect => to_vec)
This commit is contained in:
parent
a9b1a03b37
commit
b276f4758f
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ fn list(options: getopts::Matches) {
|
|||
let locs: Vec<String> = if options.free.is_empty() {
|
||||
vec![String::from(".")]
|
||||
} else {
|
||||
options.free.iter().cloned().collect()
|
||||
options.free.to_vec()
|
||||
};
|
||||
|
||||
let mut files = Vec::<PathBuf>::new();
|
||||
|
|
Loading…
Reference in a new issue