Skip to content

Commit

Permalink
add not-very-much-better clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zancas committed Oct 12, 2023
1 parent de29a8a commit f74b595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zingocli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ impl ConfigTemplate {
// Begin short_circuit section
let params: Vec<String> = matches
.values_of("PARAMS")
.map(|v| v.collect())
.unwrap_or(vec![])
.map(|v| v.collect::<Vec<_>>())
.unwrap_or_default()
.iter()
.map(|s| s.to_string())
.collect();
Expand Down

0 comments on commit f74b595

Please sign in to comment.