chore: Remove unused imports and dead code causing compiler warnings
This commit is contained in:
1 parent
cddd97dc9f
commit
e72af4f877
6 files changed
+102
-10
No files matched your search
@@ -45,14 +45,6 @@ impl<T: DeserializeOwned + Default + Serialize + Clone + Send + 'static> Store<T
|
||||
lock.clone()
|
||||
}
|
||||
|
||||
pub fn inspect<F, R>(&self, f: F) -> R
|
||||
where
|
||||
F: FnOnce(&T) -> R,
|
||||
{
|
||||
let lock = self.cache.read().unwrap();
|
||||
f(&lock)
|
||||
}
|
||||
|
||||
pub fn modify<F: FnOnce(&mut T)>(&self, f: F) {
|
||||
let mut lock = self.cache.write().unwrap();
|
||||
f(&mut lock);
|
||||
|
||||
Reference in new issue
Block a user