Skip to content

Commit

Permalink
Merge pull request #4055 from epage/clippy
Browse files Browse the repository at this point in the history
style: Make clippy happy
  • Loading branch information
epage committed Aug 10, 2022
2 parents c7d9fec + 64639aa commit 0129d99
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 95 deletions.
2 changes: 1 addition & 1 deletion clap_complete/src/shells/zsh.rs
Expand Up @@ -287,7 +287,7 @@ fn parser_of<'help, 'cmd>(
) -> Option<&'cmd Command<'help>> {
debug!("parser_of: p={}, bin_name={}", parent.get_name(), bin_name);

if bin_name == parent.get_bin_name().unwrap_or(&String::new()) {
if bin_name == parent.get_bin_name().unwrap_or("") {
return Some(parent);
}

Expand Down

0 comments on commit 0129d99

Please sign in to comment.