chore: Remove unused imports and dead code causing compiler warnings

This commit is contained in:
Riz Ashraf committed 2026-09-19 07:58:42 +01:00
1 parent cddd97dc9f
commit e72af4f877
6 files changed
+102 -10

No files matched your search

-8
View File
@@ -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);