File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ use std::cell::Cell;
13
13
use std:: collections:: hash_map:: DefaultHasher ;
14
14
use std:: hash:: Hasher ;
15
15
use std:: mem;
16
- use std:: sync:: atomic:: { AtomicUsize , Ordering , ATOMIC_USIZE_INIT } ;
16
+ use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
17
+ #[ allow( deprecated) ]
18
+ use std:: sync:: atomic:: ATOMIC_USIZE_INIT ;
17
19
use std:: sync:: { Arc , Once , ONCE_INIT } ;
18
20
use std:: thread;
19
21
use std:: usize;
@@ -748,6 +750,7 @@ impl XorShift64Star {
748
750
let mut seed = 0 ;
749
751
while seed == 0 {
750
752
let mut hasher = DefaultHasher :: new ( ) ;
753
+ #[ allow( deprecated) ]
751
754
static COUNTER : AtomicUsize = ATOMIC_USIZE_INIT ;
752
755
hasher. write_usize ( COUNTER . fetch_add ( 1 , Ordering :: Relaxed ) ) ;
753
756
seed = hasher. finish ( ) ;
Original file line number Diff line number Diff line change @@ -10,9 +10,12 @@ use std::cell::Cell;
10
10
use std:: cmp:: { self , Ordering } ;
11
11
use std:: panic;
12
12
use std:: sync:: atomic:: Ordering :: Relaxed ;
13
- use std:: sync:: atomic:: { AtomicUsize , ATOMIC_USIZE_INIT } ;
13
+ use std:: sync:: atomic:: AtomicUsize ;
14
+ #[ allow( deprecated) ]
15
+ use std:: sync:: atomic:: ATOMIC_USIZE_INIT ;
14
16
use std:: thread;
15
17
18
+ #[ allow( deprecated) ]
16
19
static VERSIONS : AtomicUsize = ATOMIC_USIZE_INIT ;
17
20
18
21
lazy_static ! {
You can’t perform that action at this time.
0 commit comments