mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Clippy fixes
This commit is contained in:
parent
f7a573e44a
commit
1c9e381a21
@ -153,7 +153,7 @@ impl RawStatement {
|
|||||||
r
|
r
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "modern_sqlite")] // 3.7.4
|
#[cfg(all(feature = "extra_check", feature = "modern_sqlite"))] // 3.7.4
|
||||||
pub fn readonly(&self) -> bool {
|
pub fn readonly(&self) -> bool {
|
||||||
unsafe { ffi::sqlite3_stmt_readonly(self.ptr) != 0 }
|
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) }
|
unsafe { ffi::sqlite3_stmt_status(self.ptr, status as i32, reset as i32) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "extra_check")]
|
||||||
pub fn has_tail(&self) -> bool {
|
pub fn has_tail(&self) -> bool {
|
||||||
self.tail
|
self.tail
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user