summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-07-08 12:36:55 +0200
committerrabite <rabite@posteo.de>2019-07-08 12:54:48 +0200
commit9b6bb7fea092b621337e797b8fd3628ff7ad8218 (patch)
treea49c3102345f9ed5fdaccb303e5fc90ecfdcf239
parentc8faea0343f6cb5cec6545b884fc3b927fffcd57 (diff)
remove unnecessary impl Sync from FsCache
-rw-r--r--src/fscache.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fscache.rs b/src/fscache.rs
index fa31760..8fb991e 100644
--- a/src/fscache.rs
+++ b/src/fscache.rs
@@ -64,8 +64,6 @@ impl std::fmt::Debug for FsCache {
}
}
-unsafe impl Sync for FsCache {}
-
#[derive(Clone)]
pub struct FsCache {
@@ -74,7 +72,6 @@ pub struct FsCache {
watched_dirs: Arc<RwLock<HashSet<File>>>,
watcher: Arc<RwLock<RecommendedWatcher>>,
pub fs_changes: Arc<RwLock<Vec<(File, Option<File>, Option<File>)>>>,
- sender: Sender<Events>,
}
impl FsCache {
@@ -90,13 +87,12 @@ impl FsCache {
watched_dirs: Arc::new(RwLock::new(HashSet::new())),
watcher: Arc::new(RwLock::new(watcher)),
fs_changes: Arc::new(RwLock::new(vec![])),
- sender: sender.clone(),
};
watch_fs(rx_fs_event,
fs_cache.files.clone(),
fs_cache.fs_changes.clone(),
- sender.clone());
+ sender);
fs_cache
}