From 57d2ae42cfe027fcf8d65bcf3be88b7c24540ef9 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Thu, 19 May 2016 15:03:01 -0500 Subject: [PATCH] Fix clippy needless_borrow warning --- src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.