diff --git a/crates/bevy_asset/src/io/file_asset_io.rs b/crates/bevy_asset/src/io/file_asset_io.rs index 74f01725b6280..9dabb1b1b5a94 100644 --- a/crates/bevy_asset/src/io/file_asset_io.rs +++ b/crates/bevy_asset/src/io/file_asset_io.rs @@ -216,7 +216,7 @@ pub fn filesystem_watcher_system( // Unless we wait until we are sure the shader is finished being modified (and that there will be no more events coming), // we will sometimes get a crash when trying to reload a partially-modified shader. for (to_reload, _) in - changed.drain_filter(|_, last_modified| last_modified.elapsed() >= watcher.delay) + changed.extract_if(|_, last_modified| last_modified.elapsed() >= watcher.delay) { let _ = asset_server.load_untracked(to_reload.as_path().into(), true); } diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index cc97bb332bda6..e423aa950c434 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -16,7 +16,7 @@ ahash = "0.8.3" tracing = { version = "0.1", default-features = false, features = ["std"] } instant = { version = "0.1", features = ["wasm-bindgen"] } uuid = { version = "1.1", features = ["v4", "serde"] } -hashbrown = { version = "0.13", features = ["serde"] } +hashbrown = { version = "0.14", features = ["serde"] } bevy_utils_proc_macros = {version = "0.11.0-dev", path = "macros"} petgraph = "0.6" thiserror = "1.0"