From 48dfac6f8b6a6b36fdb0469f5a393cb0725c18ce Mon Sep 17 00:00:00 2001 From: Youser Nayme <7685106-NeutralModder@users.noreply.gitlab.com> Date: Sun, 23 Jun 2024 10:40:04 -0400 Subject: [PATCH] Update hashbrown --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 2 +- voxygen/src/ui/graphic/mod.rs | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b9cb8bd65d..f992855ad7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2802,8 +2802,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ "ahash 0.8.11", - "rayon", - "serde", ] [[package]] @@ -2814,6 +2812,8 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash 0.8.11", "allocator-api2", + "rayon", + "serde", ] [[package]] @@ -7075,7 +7075,7 @@ dependencies = [ "authc", "byteorder", "clap", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "hickory-resolver", "image", "num 0.4.3", @@ -7109,7 +7109,7 @@ dependencies = [ "fluent", "fluent-bundle", "fluent-syntax", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "intl-memoizer", "serde", "tracing", @@ -7133,7 +7133,7 @@ dependencies = [ "dot_vox", "enum-map", "fxhash", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "indexmap", "itertools 0.10.5", "kiddo", @@ -7171,7 +7171,7 @@ version = "0.10.0" dependencies = [ "assets_manager", "dot_vox", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "image", "lazy_static", "ron", @@ -7226,7 +7226,7 @@ dependencies = [ name = "veloren-common-i18n" version = "0.1.0" dependencies = [ - "hashbrown 0.13.2", + "hashbrown 0.14.5", "rand 0.8.5", "serde", ] @@ -7237,7 +7237,7 @@ version = "0.10.0" dependencies = [ "bincode", "flate2", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "image", "num-traits", "serde", @@ -7256,7 +7256,7 @@ dependencies = [ "bincode", "bytes", "futures", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "hex", "num_cpus", "rayon", @@ -7308,7 +7308,7 @@ dependencies = [ "criterion", "crossbeam-channel", "futures-util", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "lazy_static", "lz-fear", "prometheus", @@ -7336,7 +7336,7 @@ dependencies = [ "bitflags 2.5.0", "bytes", "criterion", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "prometheus", "rand 0.8.5", "tokio", @@ -7363,7 +7363,7 @@ dependencies = [ "atomic_refcell", "enum-map", "fxhash", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "itertools 0.10.5", "rand 0.8.5", "rand_chacha 0.3.1", @@ -7391,7 +7391,7 @@ dependencies = [ "drop_guard", "enum-map", "futures-util", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "humantime", "itertools 0.10.5", "lazy_static", @@ -7507,7 +7507,7 @@ dependencies = [ "gilrs", "glyph_brush", "guillotiere", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "iced_native", "iced_winit", "image", @@ -7609,7 +7609,7 @@ dependencies = [ "fixed", "flate2", "fxhash", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "image", "indicatif", "itertools 0.10.5", diff --git a/Cargo.toml b/Cargo.toml index 6b372d3d2f..ebde6261a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,7 +142,7 @@ prometheus-hyper = "0.2" strum = { version = "0.24", features = ["derive"] } enum-map = { version = "2.4" } -hashbrown = { version = "0.13", features = ["rayon", "serde", "nightly"] } +hashbrown = { version = "0.14", features = ["rayon", "serde", "nightly"] } fxhash = { version = "0.2.1" } crossbeam-utils = { version = "0.8.1" } crossbeam-channel = { version = "0.5" } diff --git a/voxygen/src/ui/graphic/mod.rs b/voxygen/src/ui/graphic/mod.rs index 38a0c8f8a6..5019599a51 100644 --- a/voxygen/src/ui/graphic/mod.rs +++ b/voxygen/src/ui/graphic/mod.rs @@ -322,7 +322,7 @@ impl GraphicCache { } }); } else { - self.cache_map.drain_filter(|key, details| { + let _ = self.cache_map.extract_if(|key, details| { if key.graphic_id == id { match details { // NOTE: if replace_graphic is used continously for small images (i.e.