mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
clippy: let_and_return
This commit is contained in:
parent
2f0e511ab6
commit
852e9ceb18
1 changed files with 1 additions and 0 deletions
|
@ -1344,6 +1344,7 @@ impl<'a, 'b> Parser<'a, 'b>
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(let_and_return))]
|
||||
fn use_long_help(&self) -> bool {
|
||||
let ul = self.flags.iter().any(|f| f.b.long_help.is_some()) ||
|
||||
self.opts.iter().any(|o| o.b.long_help.is_some()) ||
|
||||
|
|
Loading…
Reference in a new issue