From 1c9e381a21a07410025038699c1d3bd26591b6e8 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Sat, 6 Jun 2020 17:46:38 -0700 Subject: [PATCH] Clippy fixes --- src/raw_statement.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/raw_statement.rs b/src/raw_statement.rs index ce8c982..e16aa96 100644 --- a/src/raw_statement.rs +++ b/src/raw_statement.rs @@ -153,7 +153,7 @@ impl RawStatement { r } - #[cfg(feature = "modern_sqlite")] // 3.7.4 + #[cfg(all(feature = "extra_check", feature = "modern_sqlite"))] // 3.7.4 pub fn readonly(&self) -> bool { unsafe { ffi::sqlite3_stmt_readonly(self.ptr) != 0 } } @@ -168,6 +168,7 @@ impl RawStatement { unsafe { ffi::sqlite3_stmt_status(self.ptr, status as i32, reset as i32) } } + #[cfg(feature = "extra_check")] pub fn has_tail(&self) -> bool { self.tail }