From 576a8a96f6083e60c56cfd309f18c981df4f1b1f Mon Sep 17 00:00:00 2001 From: gwenn Date: Wed, 5 Jan 2022 19:34:29 +0100 Subject: [PATCH] clippy::default_trait_access --- src/raw_statement.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/raw_statement.rs b/src/raw_statement.rs index 787edb1..8e624dc 100644 --- a/src/raw_statement.rs +++ b/src/raw_statement.rs @@ -1,5 +1,6 @@ use super::ffi; use super::StatementStatus; +use crate::util::ParamIndexCache; #[cfg(feature = "modern_sqlite")] use crate::util::SqliteMallocString; use std::ffi::CStr; @@ -13,7 +14,7 @@ pub struct RawStatement { ptr: *mut ffi::sqlite3_stmt, tail: usize, // 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 // cache. This is None for statements which didn't come from the statement // cache. @@ -33,7 +34,7 @@ impl RawStatement { RawStatement { ptr: stmt, tail, - cache: Default::default(), + cache: ParamIndexCache::default(), statement_cache_key: None, } }