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() }