Skip to content

Commit 470e0cb

Browse files
committed
Update ahash
1 parent de77272 commit 470e0cb

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313

1414
## Changed
1515
- The minimum Rust version has been bumped to 1.49.0. (#230)
16+
- Updated `ahash` dependency to 0.7. (#241)
1617

1718
## [v0.10.0] - 2021-01-16
1819

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition = "2018"
1313

1414
[dependencies]
1515
# For the default hasher
16-
ahash = { version = "0.6.1", default-features = false, optional = true }
16+
ahash = { version = "0.7.0", default-features = false, optional = true }
1717

1818
# For external trait impls
1919
rayon = { version = "1.0", optional = true }

src/map.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ where
255255
{
256256
//This enables specialization to improve performance on primitive types
257257
use ahash::CallHasher;
258-
let state = hash_builder.build_hasher();
259-
Q::get_hash(val, state)
258+
Q::get_hash(val, hash_builder)
260259
}
261260
#[cfg(not(feature = "ahash"))]
262261
{
@@ -277,8 +276,7 @@ where
277276
{
278277
//This enables specialization to improve performance on primitive types
279278
use ahash::CallHasher;
280-
let state = hash_builder.build_hasher();
281-
K::get_hash(val, state)
279+
K::get_hash(val, hash_builder)
282280
}
283281
#[cfg(not(feature = "ahash"))]
284282
{

0 commit comments

Comments
 (0)