Fix a bunch of clippy lints
This commit is contained in:
parent
364820aae4
commit
a6bb9bbe68
8 changed files with 77 additions and 85 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue