File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,15 @@ use core::{
72
72
hash:: { Hash , Hasher } ,
73
73
mem:: { ManuallyDrop , MaybeUninit } ,
74
74
ops, ptr,
75
- sync:: atomic:: { self , AtomicUsize , Ordering } ,
76
75
} ;
77
76
77
+ #[ cfg( not( feature = "portable-atomic" ) ) ]
78
+ use core:: sync:: atomic;
79
+ #[ cfg( feature = "portable-atomic" ) ]
80
+ use portable_atomic as atomic;
81
+
82
+ use atomic:: { AtomicUsize , Ordering } ;
83
+
78
84
use super :: treiber:: { NonNullPtr , Stack , UnionNode } ;
79
85
80
86
/// Creates a new `ArcPool` singleton with the given `$name` that manages the specified `$data_type`
Original file line number Diff line number Diff line change 1
- use core:: { marker:: PhantomData , ptr:: NonNull , sync :: atomic :: Ordering } ;
1
+ use core:: { marker:: PhantomData , ptr:: NonNull } ;
2
2
3
3
#[ cfg( not( feature = "portable-atomic" ) ) ]
4
4
use core:: sync:: atomic;
5
5
#[ cfg( feature = "portable-atomic" ) ]
6
6
use portable_atomic as atomic;
7
7
8
+ use atomic:: Ordering ;
9
+
8
10
use super :: { Node , Stack } ;
9
11
10
12
#[ cfg( target_pointer_width = "32" ) ]
You can’t perform that action at this time.
0 commit comments