File tree 1 file changed +1
-5
lines changed 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,6 @@ pub use crate::error::TimerError;
83
83
use core:: { fmt, mem, ptr} ;
84
84
#[ cfg( feature = "std" ) ]
85
85
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
86
- #[ cfg( feature = "std" ) ]
87
- #[ allow( deprecated) ] // Required for compatibility with Rust < 1.24.
88
- use std:: sync:: atomic:: ATOMIC_USIZE_INIT ;
89
86
90
87
const MEMORY_BLOCKS : usize = 64 ;
91
88
const MEMORY_BLOCKSIZE : usize = 32 ;
@@ -180,8 +177,7 @@ impl Clone for JitterRng {
180
177
181
178
// Initialise to zero; must be positive
182
179
#[ cfg( all( feature = "std" , not( target_arch = "wasm32" ) ) ) ]
183
- #[ allow( deprecated) ]
184
- static JITTER_ROUNDS : AtomicUsize = ATOMIC_USIZE_INIT ;
180
+ static JITTER_ROUNDS : AtomicUsize = AtomicUsize :: new ( 0 ) ;
185
181
186
182
impl JitterRng {
187
183
/// Create a new `JitterRng`. Makes use of `std::time` for a timer, or a
You can’t perform that action at this time.
0 commit comments