mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-30 06:01:36 +08:00
Fix clippy needless_borrow warning
This commit is contained in:
parent
6f8f2f3910
commit
57d2ae42cf
@ -34,7 +34,7 @@ impl Connection {
|
|||||||
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
|
/// Will return `Err` if `sql` cannot be converted to a C-compatible string or if the
|
||||||
/// underlying SQLite call fails.
|
/// underlying SQLite call fails.
|
||||||
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
|
pub fn prepare_cached<'a>(&'a self, sql: &str) -> Result<CachedStatement<'a>> {
|
||||||
self.cache.get(&self, sql)
|
self.cache.get(self, sql)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set the maximum number of cached prepared statements this connection will hold.
|
/// Set the maximum number of cached prepared statements this connection will hold.
|
||||||
|
Loading…
Reference in New Issue
Block a user