File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ value-trait = { version = "0.12" }
1818beef = { version = " 0.5" , optional = true }
1919halfbrown = " 0.4"
2020# ahash known key
21- once_cell = { version = " 1.21" , optional = true }
2221ahash = { version = " 0.8" , optional = true }
2322
2423# serde compatibilty
@@ -73,7 +72,7 @@ value-no-dup-keys = []
7372# used for enabeling known keys in favour of a slower
7473# hasher that is not protected against hash collision
7574# attacks
76- known-key = [" once_cell " , " ahash" ]
75+ known-key = [" ahash" ]
7776
7877# use 8 number at once parsing strategy
7978swar-number-parsing = []
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ use crate::BorrowedValue as Value;
22use crate :: cow:: Cow ;
33use crate :: prelude:: * ;
44use halfbrown:: RawEntryMut ;
5- use std:: fmt;
65use std:: hash:: BuildHasher ;
6+ use std:: { fmt, sync:: OnceLock } ;
77
88use ahash:: { AHasher , RandomState } ;
9- use once_cell:: sync:: OnceCell ;
10- static NOT_RANDOM : OnceCell < RandomState > = OnceCell :: new ( ) ;
9+ static NOT_RANDOM : OnceLock < RandomState > = OnceLock :: new ( ) ;
1110
1211/// `AHash` `BuildHasher` that uses a startup initialized random state for known keys
1312#[ derive( Clone ) ]
You can’t perform that action at this time.
0 commit comments