Skip to content

Commit

Permalink
Backport rust-lang#357 for 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Feb 8, 2024
1 parent bbb5d3b commit 8ffef00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Expand Up @@ -13,7 +13,7 @@ edition = "2018"

[dependencies]
# For the default hasher
ahash = { version = "0.7.0", default-features = false, optional = true }
ahash = { version = "0.8.0", default-features = false, optional = true }

# For external trait impls
rayon = { version = "1.0", optional = true }
Expand All @@ -38,7 +38,8 @@ doc-comment = "0.3.1"
[features]
default = ["ahash", "inline-more"]

ahash-compile-time-rng = ["ahash/compile-time-rng"]
# Ahash changed behavior here, this feature is now a no-op for backcompat
ahash-compile-time-rng = []
nightly = []
rustc-internal-api = []
rustc-dep-of-std = [
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Expand Up @@ -14,7 +14,7 @@ use core::ops::Index;

/// Default hasher for `HashMap`.
#[cfg(feature = "ahash")]
pub type DefaultHashBuilder = ahash::RandomState;
pub type DefaultHashBuilder = core::hash::BuildHasherDefault<ahash::AHasher>;

/// Dummy default hasher for `HashMap`.
#[cfg(not(feature = "ahash"))]
Expand Down

0 comments on commit 8ffef00

Please sign in to comment.