diff --git a/src/error.rs b/src/error.rs index a8794bf..efb5b24 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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), @@ -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), diff --git a/src/lib.rs b/src/lib.rs index 50cf7e9..1b64eff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,6 +50,7 @@ //! } //! } //! ``` +#![allow(unknown_lints)] extern crate libc; extern crate libsqlite3_sys as ffi; @@ -975,6 +976,7 @@ pub struct Rows<'stmt> { stmt: Option<&'stmt Statement<'stmt>>, } +#[allow(should_implement_trait)] impl<'stmt> Rows<'stmt> { fn new(stmt: &'stmt Statement<'stmt>) -> Rows<'stmt> { Rows { stmt: Some(stmt) } diff --git a/src/transaction.rs b/src/transaction.rs index 347f5cb..d234956 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -401,7 +401,6 @@ impl Connection { } #[cfg(test)] -#[cfg_attr(feature="clippy", allow(similar_names))] mod test { use Connection; use super::DropBehavior; diff --git a/src/types/mod.rs b/src/types/mod.rs index 61deaf6..02d2a59 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -103,7 +103,6 @@ pub enum Value { } #[cfg(test)] -#[cfg_attr(feature="clippy", allow(similar_names))] mod test { extern crate time; @@ -182,7 +181,6 @@ mod test { } #[test] - #[cfg_attr(feature="clippy", allow(cyclomatic_complexity))] fn test_mismatched_types() { fn is_invalid_column_type(err: Error) -> bool { match err {