Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Apr 30, 2022
1 parent ccf8634 commit 8df2047
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ impl<'help, 'cmd> Parser<'help, 'cmd> {
debug!("Parser::parse_help_subcommand");

let mut cmd = self.cmd.clone();
let mut sc = {
let sc = {
let mut sc = &mut cmd;

for cmd in cmds {
Expand All @@ -624,7 +624,7 @@ impl<'help, 'cmd> Parser<'help, 'cmd> {
sc._build_subcommand(&sc_name).unwrap()
} else {
return Err(ClapError::unrecognized_subcommand(
&sc,
sc,
cmd.to_string_lossy().into_owned(),
sc.get_bin_name()
.unwrap_or_else(|| sc.get_name())
Expand All @@ -635,7 +635,7 @@ impl<'help, 'cmd> Parser<'help, 'cmd> {

sc
};
let parser = Parser::new(&mut sc);
let parser = Parser::new(sc);

Err(parser.help_err(true, Stream::Stdout))
}
Expand Down

0 comments on commit 8df2047

Please sign in to comment.