From 9ea038157d5816207d571cdc5bcd128ae7957882 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 3 Sep 2020 18:05:36 -0400 Subject: [PATCH] DB: WriteGuard methods take any lifetime --- youmubot-db/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-db/src/lib.rs b/youmubot-db/src/lib.rs index bbb0b2e..69a44f6 100644 --- a/youmubot-db/src/lib.rs +++ b/youmubot-db/src/lib.rs @@ -64,11 +64,11 @@ where T: Send + Sync + Clone + std::fmt::Debug + Serialize + DeserializeOwned, { /// Borrows the FileDatabase. - pub fn borrow(&'a self) -> Result, DBError> { + pub fn borrow(&self) -> Result, DBError> { self.db.borrow_data() } /// Borrows the FileDatabase for writing. - pub fn borrow_mut(&'a mut self) -> Result, DBError> { + pub fn borrow_mut(&mut self) -> Result, DBError> { self.needs_save = true; self.db.borrow_data_mut() }