Skip to content

Commit ee71507

Browse files
authored
Merge pull request #262 from daxpedda/hashbrown-v0.14
Upgrade to hashbrown 0.14 (MSRV 1.64)
2 parents d62f837 + ec1fbce commit ee71507

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
include:
19-
- rust: 1.61.0 # MSRV
19+
- rust: 1.64.0 # MSRV
2020
features:
2121
- rust: stable
2222
features: arbitrary
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
matrix:
6161
include:
62-
- rust: 1.61.0
62+
- rust: 1.64.0
6363
target: thumbv6m-none-eabi
6464
- rust: stable
6565
target: thumbv6m-none-eabi

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "Apache-2.0 OR MIT"
99
description = "A hash table with consistent order and fast iteration."
1010
keywords = ["hashmap", "no_std"]
1111
categories = ["data-structures", "no-std"]
12-
rust-version = "1.61"
12+
rust-version = "1.64"
1313

1414
[lib]
1515
bench = false
@@ -25,7 +25,7 @@ rayon = { version = "1.5.3", optional = true }
2525
rustc-rayon = { package = "rustc-rayon", version = "0.5", optional = true }
2626

2727
[dependencies.hashbrown]
28-
version = "0.13"
28+
version = "0.14"
2929
default-features = false
3030
features = ["raw"]
3131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![build status](https://github.com/bluss/indexmap/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/bluss/indexmap/actions)
44
[![crates.io](https://img.shields.io/crates/v/indexmap.svg)](https://crates.io/crates/indexmap)
55
[![docs](https://docs.rs/indexmap/badge.svg)](https://docs.rs/indexmap)
6-
[![rustc](https://img.shields.io/badge/rust-1.61%2B-orange.svg)](https://img.shields.io/badge/rust-1.61%2B-orange.svg)
6+
[![rustc](https://img.shields.io/badge/rust-1.64%2B-orange.svg)](https://img.shields.io/badge/rust-1.64%2B-orange.svg)
77

88
A pure-Rust hash table which preserves (in a limited sense) insertion order.
99

RELEASES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- 2.0.0 (pending)
22

3-
- **MSRV**: Rust 1.61.0 or later is now required.
3+
- **MSRV**: Rust 1.64.0 or later is now required.
44

55
- The `"std"` feature is no longer auto-detected. It is included in the
66
default feature set, or else can be enabled like any other Cargo feature.
@@ -26,7 +26,7 @@
2626
However, exactness only applies to the direct capacity for items, while the
2727
raw hash table still follows its own rules for capacity and load factor.
2828

29-
- The `hashbrown` dependency has been updated to version 0.13.
29+
- The `hashbrown` dependency has been updated to version 0.14.
3030

3131
- The `serde_seq` module has been moved from the crate root to below the
3232
`map` module.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
//!
8282
//! ### Rust Version
8383
//!
84-
//! This version of indexmap requires Rust 1.61 or later.
84+
//! This version of indexmap requires Rust 1.64 or later.
8585
//!
8686
//! The indexmap 2.x release series will use a carefully considered version
8787
//! upgrade policy, where in a later 2.x version, we will raise the minimum

src/map/core/raw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
171171
pub fn swap_remove_entry(self) -> (K, V) {
172172
// SAFETY: This is safe because it can only happen once (self is consumed)
173173
// and map.indices have not been modified since entry construction
174-
let index = unsafe { self.map.indices.remove(self.raw_bucket) };
174+
let (index, _slot) = unsafe { self.map.indices.remove(self.raw_bucket) };
175175
self.map.swap_remove_finish(index)
176176
}
177177

@@ -185,7 +185,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
185185
pub fn shift_remove_entry(self) -> (K, V) {
186186
// SAFETY: This is safe because it can only happen once (self is consumed)
187187
// and map.indices have not been modified since entry construction
188-
let index = unsafe { self.map.indices.remove(self.raw_bucket) };
188+
let (index, _slot) = unsafe { self.map.indices.remove(self.raw_bucket) };
189189
self.map.shift_remove_finish(index)
190190
}
191191
}

0 commit comments

Comments
 (0)