mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-07 00:02:27 -05:00
fix lifetime elision warnings
This commit is contained in:
@@ -2417,7 +2417,7 @@ impl<C: Clocks + Clone> Database<C> {
|
||||
|
||||
/// Locks the database; the returned reference is the only way to perform (read or write)
|
||||
/// operations.
|
||||
pub fn lock(&self) -> DatabaseGuard<C> {
|
||||
pub fn lock(&self) -> DatabaseGuard<'_, C> {
|
||||
let timer = clock::TimerGuard::new(&self.clocks, acquisition);
|
||||
let db = self.db.as_ref().unwrap().lock();
|
||||
drop(timer);
|
||||
|
||||
Reference in New Issue
Block a user