Skip to content

Commit d20bc47

Browse files
committed
Fix UB.
1 parent 3d88d3c commit d20bc47

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ keywords = ["atomic", "concurrent", "hashmap"]
1313
categories = ["concurrency", "algorithms", "data-structures"]
1414

1515
[features]
16-
nightly = ["parking_lot/nightly"]
1716
raw-api = []
1817

1918
[dev-dependencies]
@@ -44,7 +43,7 @@ name = "cht"
4443
harness = false
4544

4645
[dependencies]
47-
parking_lot = "0.10.0"
46+
spin = "0.5.2"
4847
num_cpus = "1.11.1"
4948
fxhash = "0.2.1"
5049
serde = { version = "1.0.104", optional = true, features = ["derive"] }

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ If you have any suggestions or tips do not hesitate to open an issue or a PR.
2020

2121
## Cargo features
2222

23-
- `nightly` - Enables experimental nightly optimizations.
24-
2523
- `serde` - Enables serde support.
2624

2725
- `raw-api` - Enables the unstable raw-shard api.

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![allow(clippy::type_complexity)]
22

3+
extern crate spin as parking_lot;
4+
35
pub mod iter;
46
pub mod mapref;
57
mod t;

0 commit comments

Comments
 (0)