diff --git a/src/cache.rs b/src/cache.rs index f5fade3..ce9181e 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -34,7 +34,7 @@ impl Connection { /// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the /// underlying SQLite call fails. pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result> { - self.cache.get(&self, sql) + self.cache.get(self, sql) } /// Set the maximum number of cached prepared statements this connection will hold.