diff options
Diffstat (limited to 'src/watcher.rs')
-rw-r--r-- | src/watcher.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/watcher.rs b/src/watcher.rs index 8918dda..0e23c55 100644 --- a/src/watcher.rs +++ b/src/watcher.rs @@ -1,21 +1,16 @@ use std::{ - path::{Path, PathBuf}, + path::PathBuf, time::Duration, }; use async_channel::{Receiver, Sender}; use bevy::{prelude::*, tasks::IoTaskPool}; -use notify::{ - event::{AccessKind, AccessMode, DataChange, MetadataKind, ModifyKind, RenameMode}, - EventKind, RecursiveMode, Watcher, -}; +use notify::RecursiveMode; use notify_debouncer_full::{new_debouncer, DebounceEventResult}; -use crate::{ - components::DirworldEntity, - resources::{DirworldCache, DirworldCodecs, DirworldObservers, DirworldRootDir}, -}; +use crate::resources::DirworldRootDir; +/// SystemSet for dirworld watcher systems #[derive(SystemSet, Debug, Clone, PartialEq, Eq, Hash)] pub struct DirworldWatcherSet; @@ -94,4 +89,3 @@ pub fn update( } } } - |