From b04b0ac936fc295f5406dfc0a406039e61a106cf Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Sun, 30 Aug 2020 19:22:40 +0100 Subject: [PATCH] Fix hot asset reloading on Windows (#394) Fixes #348 Changes to uses fully qualified names to work around https://github.com/rust-analyzer/rust-analyzer/issues/1165 --- crates/bevy_asset/src/asset_server.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_asset/src/asset_server.rs b/crates/bevy_asset/src/asset_server.rs index 350a832cea439..e5b696ac51595 100644 --- a/crates/bevy_asset/src/asset_server.rs +++ b/crates/bevy_asset/src/asset_server.rs @@ -13,6 +13,7 @@ use std::{ sync::Arc, thread, }; + use thiserror::Error; /// The type used for asset versioning @@ -184,7 +185,6 @@ impl AssetServer { #[cfg(feature = "filesystem_watcher")] pub fn filesystem_watcher_system(asset_server: Res) { - use notify::event::{Event, EventKind, ModifyKind}; let mut changed = HashSet::default(); loop { @@ -201,8 +201,8 @@ impl AssetServer { Err(TryRecvError::Empty) => break, Err(TryRecvError::Disconnected) => panic!("FilesystemWatcher disconnected"), }; - if let Event { - kind: EventKind::Modify(ModifyKind::Data(_)), + if let notify::event::Event { + kind: notify::event::EventKind::Modify(_), paths, .. } = event