Skip to content

Commit 00a7920

Browse files
committed
Bump MSRV to 1.85
1 parent fe151cc commit 00a7920

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@v6
3737
- uses: dtolnay/rust-toolchain@master
3838
with:
39-
toolchain: 1.65.0
39+
toolchain: 1.85.0
4040
- run: cargo check --locked --lib --all-features
4141

4242
lint:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ documentation = "https://docs.rs/hashlink"
88
readme = "README.md"
99
keywords = ["data-structures", "no_std"]
1010
license = "MIT OR Apache-2.0"
11-
rust-version = "1.65"
11+
rust-version = "1.85"
1212

1313
[features]
1414
serde_impl = ["serde"]

src/linked_hash_map.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,9 +2310,7 @@ where
23102310
S: BuildHasher,
23112311
Q: Hash + ?Sized,
23122312
{
2313-
let mut hasher = s.build_hasher();
2314-
k.hash(&mut hasher);
2315-
hasher.finish()
2313+
s.hash_one(k)
23162314
}
23172315

23182316
// We do not drop the key and value when a value is filtered from the map during the call to

0 commit comments

Comments
 (0)