mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 09:09:19 +08:00
Move clippy allowance behind a cfg_attr
This commit is contained in:
parent
d6e604af77
commit
09dfa6afab
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user