Move clippy allowance behind a cfg_attr

This commit is contained in:
John Gallagher 2016-03-29 16:36:00 -04:00
parent d6e604af77
commit 09dfa6afab

View File

@ -140,7 +140,7 @@ impl error::Error for Error {
} }
} }
#[allow(match_same_arms)] #[cfg_attr(feature="clippy", allow(match_same_arms))]
fn cause(&self) -> Option<&error::Error> { fn cause(&self) -> Option<&error::Error> {
match *self { match *self {
Error::SqliteFailure(ref err, _) => Some(err), Error::SqliteFailure(ref err, _) => Some(err),