Skip to content

Commit 1ba5130

Browse files
authored
Merge pull request #202 from torokati44/hashbrown-0.15
Update hashbrown to 0.15
2 parents d5b98fd + 60a7e71 commit 1ba5130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ default = ["hashbrown"]
1616
nightly = ["hashbrown", "hashbrown/nightly"]
1717

1818
[dependencies]
19-
hashbrown = { version = "0.14", optional = true }
19+
hashbrown = { version = "0.15", optional = true }
2020

2121
[dev-dependencies]
2222
scoped_threadpool = "0.1.*"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl<K, V> LruEntry<K, V> {
179179
}
180180

181181
#[cfg(feature = "hashbrown")]
182-
pub type DefaultHasher = hashbrown::hash_map::DefaultHashBuilder;
182+
pub type DefaultHasher = hashbrown::DefaultHashBuilder;
183183
#[cfg(not(feature = "hashbrown"))]
184184
pub type DefaultHasher = std::collections::hash_map::RandomState;
185185

@@ -1773,7 +1773,7 @@ mod tests {
17731773
fn test_with_hasher() {
17741774
use core::num::NonZeroUsize;
17751775

1776-
use hashbrown::hash_map::DefaultHashBuilder;
1776+
use hashbrown::DefaultHashBuilder;
17771777

17781778
let s = DefaultHashBuilder::default();
17791779
let mut cache = LruCache::with_hasher(NonZeroUsize::new(16).unwrap(), s);

0 commit comments

Comments
 (0)