fix lifetime elision warnings

This commit is contained in:
Scott Lamb
2025-10-03 14:19:52 -07:00
parent bc93712314
commit dc1909d073
6 changed files with 9 additions and 9 deletions

View File

@@ -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);