mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
clippy::default_trait_access
This commit is contained in:
parent
b5aa6f7984
commit
576a8a96f6
@ -1,5 +1,6 @@
|
|||||||
use super::ffi;
|
use super::ffi;
|
||||||
use super::StatementStatus;
|
use super::StatementStatus;
|
||||||
|
use crate::util::ParamIndexCache;
|
||||||
#[cfg(feature = "modern_sqlite")]
|
#[cfg(feature = "modern_sqlite")]
|
||||||
use crate::util::SqliteMallocString;
|
use crate::util::SqliteMallocString;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
@ -13,7 +14,7 @@ pub struct RawStatement {
|
|||||||
ptr: *mut ffi::sqlite3_stmt,
|
ptr: *mut ffi::sqlite3_stmt,
|
||||||
tail: usize,
|
tail: usize,
|
||||||
// Cached indices of named parameters, computed on the fly.
|
// Cached indices of named parameters, computed on the fly.
|
||||||
cache: crate::util::ParamIndexCache,
|
cache: ParamIndexCache,
|
||||||
// Cached SQL (trimmed) that we use as the key when we're in the statement
|
// Cached SQL (trimmed) that we use as the key when we're in the statement
|
||||||
// cache. This is None for statements which didn't come from the statement
|
// cache. This is None for statements which didn't come from the statement
|
||||||
// cache.
|
// cache.
|
||||||
@ -33,7 +34,7 @@ impl RawStatement {
|
|||||||
RawStatement {
|
RawStatement {
|
||||||
ptr: stmt,
|
ptr: stmt,
|
||||||
tail,
|
tail,
|
||||||
cache: Default::default(),
|
cache: ParamIndexCache::default(),
|
||||||
statement_cache_key: None,
|
statement_cache_key: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user