refactor/polish ~ fix cargo clippy complaints (iter.collect => to_vec)

This commit is contained in:
Roy Ivy III 2019-12-28 12:47:28 -06:00
parent a9b1a03b37
commit b276f4758f

View file

@ -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();