style: only ignore clippy warning if lints are enabled

else you get another warning!
This commit is contained in:
tormol 2016-10-09 00:08:19 +02:00
parent af9e1a393c
commit da88fd254b

View file

@ -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 {