mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
chore: clippy run
This commit is contained in:
parent
1ff9791fb4
commit
61bde461e1
2 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,7 @@ ansi_term = { version = "~0.9.0", optional = true }
|
|||
term_size = { version = "~0.2.0", optional = true }
|
||||
libc = { version = "~0.2.9", optional = true }
|
||||
yaml-rust = { version = "~0.3.2", optional = true }
|
||||
clippy = { version = "~0.0.95", optional = true }
|
||||
clippy = { version = "~0.0.96", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
regex = "~0.1.69"
|
||||
|
|
|
@ -260,6 +260,7 @@ impl<'a, 'b> Parser<'a, 'b>
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "lints", allow(needless_borrow))]
|
||||
pub fn derive_display_order(&mut self) {
|
||||
if self.settings.is_set(AppSettings::DeriveDisplayOrder) {
|
||||
let unified = self.settings.is_set(AppSettings::UnifiedHelpMessage);
|
||||
|
|
Loading…
Reference in a new issue