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
This commit is contained in:
		
							parent
							
								
									ad460159b0
								
							
						
					
					
						commit
						61b5fe9cfc
					
				| @ -13,6 +13,7 @@ use std::{ | |||||||
|     sync::Arc, |     sync::Arc, | ||||||
|     thread, |     thread, | ||||||
| }; | }; | ||||||
|  | 
 | ||||||
| use thiserror::Error; | use thiserror::Error; | ||||||
| 
 | 
 | ||||||
| /// The type used for asset versioning
 | /// The type used for asset versioning
 | ||||||
| @ -184,7 +185,6 @@ impl AssetServer { | |||||||
| 
 | 
 | ||||||
|     #[cfg(feature = "filesystem_watcher")] |     #[cfg(feature = "filesystem_watcher")] | ||||||
|     pub fn filesystem_watcher_system(asset_server: Res<AssetServer>) { |     pub fn filesystem_watcher_system(asset_server: Res<AssetServer>) { | ||||||
|         use notify::event::{Event, EventKind, ModifyKind}; |  | ||||||
|         let mut changed = HashSet::default(); |         let mut changed = HashSet::default(); | ||||||
| 
 | 
 | ||||||
|         loop { |         loop { | ||||||
| @ -201,8 +201,8 @@ impl AssetServer { | |||||||
|                 Err(TryRecvError::Empty) => break, |                 Err(TryRecvError::Empty) => break, | ||||||
|                 Err(TryRecvError::Disconnected) => panic!("FilesystemWatcher disconnected"), |                 Err(TryRecvError::Disconnected) => panic!("FilesystemWatcher disconnected"), | ||||||
|             }; |             }; | ||||||
|             if let Event { |             if let notify::event::Event { | ||||||
|                 kind: EventKind::Modify(ModifyKind::Data(_)), |                 kind: notify::event::EventKind::Modify(_), | ||||||
|                 paths, |                 paths, | ||||||
|                 .. |                 .. | ||||||
|             } = event |             } = event | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel McNab
						Daniel McNab