From 09dfa6afab2b66e79553aa12ead3e8c9b7d0988c Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Tue, 29 Mar 2016 16:36:00 -0400 Subject: [PATCH] Move clippy allowance behind a cfg_attr --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index ebc79b7..cc753c7 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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> { match *self { Error::SqliteFailure(ref err, _) => Some(err),