diff options
author | rabite <rabite@posteo.de> | 2019-07-08 12:36:55 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-07-08 12:54:48 +0200 |
commit | 9b6bb7fea092b621337e797b8fd3628ff7ad8218 (patch) | |
tree | a49c3102345f9ed5fdaccb303e5fc90ecfdcf239 | |
parent | c8faea0343f6cb5cec6545b884fc3b927fffcd57 (diff) |
remove unnecessary impl Sync from FsCache
-rw-r--r-- | src/fscache.rs | 6 |
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 } |