Fix clippy warnings

This commit is contained in:
gwenn
2016-08-08 15:23:55 +02:00
parent bf8c495b69
commit b10c52f32f
4 changed files with 3 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ pub type SqliteError = Error;
/// Enum listing possible errors from rusqlite.
#[derive(Debug)]
#[allow(enum_variant_names)]
pub enum Error {
/// An error from an underlying SQLite call.
SqliteFailure(ffi::Error, Option<String>),
@@ -140,7 +141,6 @@ impl error::Error for Error {
}
}
#[cfg_attr(feature="clippy", allow(match_same_arms))]
fn cause(&self) -> Option<&error::Error> {
match *self {
Error::SqliteFailure(ref err, _) => Some(err),