mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +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() {
|
let locs: Vec<String> = if options.free.is_empty() {
|
||||||
vec![String::from(".")]
|
vec![String::from(".")]
|
||||||
} else {
|
} else {
|
||||||
options.free.iter().cloned().collect()
|
options.free.to_vec()
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut files = Vec::<PathBuf>::new();
|
let mut files = Vec::<PathBuf>::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue