Skip to content

Commit 60a7e71

Browse files
committed
Use top-level DefaultHashBuilder type alias
1 parent 12ed995 commit 60a7e71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)