Skip to content

Commit

Permalink
Fix hot asset reloading on Windows (bevyengine#394)
Browse files Browse the repository at this point in the history
Fixes bevyengine#348

Changes to uses fully qualified names to work around
rust-lang/rust-analyzer#1165
  • Loading branch information
DJMcNab authored and mrk-its committed Oct 6, 2020
1 parent fad63bc commit b04b0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_asset/src/asset_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use std::{
sync::Arc,
thread,
};

use thiserror::Error;

/// The type used for asset versioning
Expand Down Expand Up @@ -184,7 +185,6 @@ impl AssetServer {

#[cfg(feature = "filesystem_watcher")]
pub fn filesystem_watcher_system(asset_server: Res<AssetServer>) {
use notify::event::{Event, EventKind, ModifyKind};
let mut changed = HashSet::default();

loop {
Expand All @@ -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
Expand Down

0 comments on commit b04b0ac

Please sign in to comment.