mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-22 22:34:28 +08:00
1
clippy.toml
Normal file
1
clippy.toml
Normal file
@@ -0,0 +1 @@
|
||||
doc-valid-idents = ["SQLite", "lang_transaction"]
|
@@ -34,7 +34,7 @@ impl Connection {
|
||||
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
|
||||
/// underlying SQLite call fails.
|
||||
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
|
||||
self.cache.get(&self, sql)
|
||||
self.cache.get(self, sql)
|
||||
}
|
||||
|
||||
/// Set the maximum number of cached prepared statements this connection will hold.
|
||||
|
@@ -160,8 +160,8 @@ impl error::Error for Error {
|
||||
Error::InvalidColumnIndex(_) |
|
||||
Error::InvalidColumnName(_) |
|
||||
Error::InvalidColumnType |
|
||||
Error::InvalidPath(_) => None,
|
||||
Error::StatementChangedRows(_) => None,
|
||||
Error::InvalidPath(_) |
|
||||
Error::StatementChangedRows(_) |
|
||||
Error::StatementFailedToInsertRow => None,
|
||||
|
||||
#[cfg(feature = "functions")]
|
||||
|
Reference in New Issue
Block a user