clippy::default_trait_access

This commit is contained in:
gwenn 2022-01-05 19:34:29 +01:00 committed by Thom Chiovoloni
parent b5aa6f7984
commit 576a8a96f6

View File

@ -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,
} }
} }