clippy: let_and_return

This commit is contained in:
Corentin Henry 2017-06-08 11:46:44 -07:00
parent 2f0e511ab6
commit 852e9ceb18

View file

@ -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()) ||