Skip to content

Commit

Permalink
bump ahasher and use BuildHasherDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
shisoft committed Feb 8, 2024
1 parent 17170c2 commit ef99bf8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
27 changes: 24 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ serde = {version = "1.0.105", optional = true}
seize = "0.2.1"

[dependencies.ahash]
version = "0.7.6"
version = "0.8"
default-features = false

# for minimal-versions
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,15 @@ mod serde_impls;
/// Iterator types.
pub mod iter;

use std::hash::BuildHasherDefault;

use ahash::AHasher;
pub use map::{HashMap, TryInsertError};
pub use map_ref::HashMapRef;
pub use set::HashSet;
pub use set_ref::HashSetRef;

/// Default hasher for [`HashMap`].
pub type DefaultHashBuilder = ahash::RandomState;
pub type DefaultHashBuilder = BuildHasherDefault<AHasher>;

pub use seize::Guard;

0 comments on commit ef99bf8

Please sign in to comment.