From a1e9304dc31980703446bdb33246e314bafd3b15 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Tue, 24 Dec 2024 00:54:31 -0500 Subject: Switched to bevy_mod_scripting, bevy 0.15 update --- src/watcher.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/watcher.rs') 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( } } } - -- cgit v1.2.3