Skip to content

Commit

Permalink
Please clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed Jul 18, 2020
1 parent cc2fc8b commit ae206b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_generate/src/generators/shells/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ fn write_positionals_of(p: &App) -> String {
.replace("[", "\\[")
.replace("]", "\\]")
.replace(":", "\\:"),
value_completion = value_completion(arg).unwrap_or("".to_string())
value_completion = value_completion(arg).unwrap_or_else(|| "".to_string())
);

debug!("write_positionals_of:iter: Wrote...{}", a);
Expand Down

0 comments on commit ae206b7

Please sign in to comment.