Skip to content

Commit

Permalink
Use top-level DefaultHashBuilder type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Oct 7, 2024
1 parent 12ed995 commit 60a7e71
Showing 1 changed file with 2 additions and 2 deletions.
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 60a7e71

Please sign in to comment.