mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
style: only ignore clippy warning if lints are enabled
else you get another warning!
This commit is contained in:
parent
af9e1a393c
commit
da88fd254b
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ impl<T: AsRef<str>> Format<T> {
|
|||
}
|
||||
|
||||
#[cfg(any(not(feature = "color"), target_os = "windows"))]
|
||||
#[allow(match_same_arms)]
|
||||
#[cfg_attr(feature="lints", allow(match_same_arms))]
|
||||
impl<T: fmt::Display> Format<T> {
|
||||
fn format(&self) -> &T {
|
||||
match *self {
|
||||
|
|
Loading…
Reference in a new issue