mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
Fix a bunch of clippy lints
This commit is contained in:
8 files changed
+77
-85
No files matched your search
@@ -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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user