Skip to content

Commit

Permalink
Merge pull request #202 from torokati44/hashbrown-0.15
Browse files Browse the repository at this point in the history
Update hashbrown to 0.15
  • Loading branch information
jeromefroe authored Oct 7, 2024
2 parents d5b98fd + 60a7e71 commit 1ba5130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl<K, V> LruEntry<K, V> {
}

#[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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1ba5130

Please sign in to comment.