Fix a bunch of clippy lints

This commit is contained in:
Jonas Platte 2021-08-31 21:20:03 +02:00
parent 364820aae4
commit a6bb9bbe68
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
8 changed files with 77 additions and 85 deletions

View file

@ -65,12 +65,12 @@ impl Engine {
self.writer.lock()
}
fn read_lock<'a>(&'a self) -> &'a Connection {
fn read_lock(&self) -> &Connection {
self.read_conn_tls
.get_or(|| Self::prepare_conn(&self.path, self.cache_size_per_thread).unwrap())
}
fn read_lock_iterator<'a>(&'a self) -> &'a Connection {
fn read_lock_iterator(&self) -> &Connection {
self.read_iterator_conn_tls
.get_or(|| Self::prepare_conn(&self.path, self.cache_size_per_thread).unwrap())
}