From 12ed995b7b4197ad0236d8572c8c50063f8f4e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Mon, 7 Oct 2024 15:23:49 +0200 Subject: [PATCH 1/2] Update hashbrown to 0.15 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9b1ddb8..db43477 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ default = ["hashbrown"] nightly = ["hashbrown", "hashbrown/nightly"] [dependencies] -hashbrown = { version = "0.14", optional = true } +hashbrown = { version = "0.15", optional = true } [dev-dependencies] scoped_threadpool = "0.1.*" From 60a7e71c592724096ea10819382435e2005b3d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Mon, 7 Oct 2024 15:25:56 +0200 Subject: [PATCH 2/2] Use top-level DefaultHashBuilder type alias --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index be7442e..5ab978e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -179,7 +179,7 @@ impl LruEntry { } #[cfg(feature = "hashbrown")] -pub type DefaultHasher = hashbrown::hash_map::DefaultHashBuilder; +pub type DefaultHasher = hashbrown::DefaultHashBuilder; #[cfg(not(feature = "hashbrown"))] pub type DefaultHasher = std::collections::hash_map::RandomState; @@ -1773,7 +1773,7 @@ mod tests { fn test_with_hasher() { use core::num::NonZeroUsize; - use hashbrown::hash_map::DefaultHashBuilder; + use hashbrown::DefaultHashBuilder; let s = DefaultHashBuilder::default(); let mut cache = LruCache::with_hasher(NonZeroUsize::new(16).unwrap(), s);