File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11use core:: mem:: size_of;
2- #[ cfg( feature = "sort_keys" ) ]
3- use std:: collections:: BTreeMap ;
42use std:: {
53 alloc:: Layout ,
64 collections:: HashMap ,
@@ -17,18 +15,17 @@ use ahash::AHashMap;
1715use faststr:: FastStr ;
1816use ref_cast:: RefCast ;
1917use serde:: ser:: { Serialize , SerializeMap , SerializeSeq } ;
18+ #[ cfg( feature = "sort_keys" ) ]
19+ use std:: collections:: BTreeMap ;
2020
2121#[ cfg( target_arch = "x86_64" ) ]
2222use std:: arch:: x86_64:: * ;
2323
2424/// Hash index cache for large objects
2525use std:: sync:: LazyLock ;
26- static HASH_INDEX_CACHE : LazyLock < Mutex < HashMap < usize , ( HashMap < String , usize > , u32 ) > > > =
26+ static HASH_INDEX_CACHE : LazyLock < Mutex < HashMap < usize , ( HashMap < String , usize > , u32 ) > > > =
2727 LazyLock :: new ( || Mutex :: new ( HashMap :: new ( ) ) ) ;
2828
29- #[ cfg( feature = "sort_keys" ) ]
30- use std:: collections:: BTreeMap ;
31-
3229use super :: {
3330 object:: Pair ,
3431 shared:: Shared ,
You can’t perform that action at this time.
0 commit comments