diff --git a/src/cache.rs b/src/cache.rs index 4e6b945..6de1b46 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -153,7 +153,7 @@ impl StatementCache { } // Return a statement to the cache. - fn cache_stmt(&self, stmt: RawStatement) { + fn cache_stmt(&self, mut stmt: RawStatement) { if stmt.is_null() { return; } diff --git a/src/raw_statement.rs b/src/raw_statement.rs index 1683c7b..40715a2 100644 --- a/src/raw_statement.rs +++ b/src/raw_statement.rs @@ -169,7 +169,7 @@ impl RawStatement { } #[inline] - pub fn clear_bindings(&self) { + pub fn clear_bindings(&mut self) { unsafe { ffi::sqlite3_clear_bindings(self.ptr); } // rc is always SQLITE_OK