mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 05:48:56 +08:00 
			
		
		
		
	clippy::default_trait_access
This commit is contained in:
		| @@ -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, | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user