From e7d392057981b484596351e534d6cc6482ab8355 Mon Sep 17 00:00:00 2001 From: gwenn Date: Thu, 1 Nov 2018 09:56:38 +0100 Subject: [PATCH] Scoped lints are experimental --- src/error.rs | 2 +- src/row.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index ac4fc27..27674f8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,7 +12,7 @@ pub type SqliteError = Error; /// Enum listing possible errors from rusqlite. #[derive(Debug)] -#[allow(clippy::enum_variant_names)] +#[allow(enum_variant_names)] pub enum Error { /// An error from an underlying SQLite call. SqliteFailure(ffi::Error, Option), diff --git a/src/row.rs b/src/row.rs index 2c4b761..095eaee 100644 --- a/src/row.rs +++ b/src/row.rs @@ -27,7 +27,7 @@ impl<'stmt> Rows<'stmt> { /// This is a "streaming iterator". For a more natural interface, /// consider using `query_map` or `query_and_then` instead, which /// return types that implement `Iterator`. - #[cfg_attr(feature = "cargo-clippy", allow(clippy::should_implement_trait))] // cannot implement Iterator + #[cfg_attr(feature = "cargo-clippy", allow(should_implement_trait))] // cannot implement Iterator pub fn next<'a>(&'a mut self) -> Option>> { self.stmt.and_then(|stmt| match stmt.step() { Ok(true) => Some(Ok(Row {