File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 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;
8383use core:: { fmt, mem, ptr} ;
8484#[ cfg( feature = "std" ) ]
8585use 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 ;
8986
9087const MEMORY_BLOCKS : usize = 64 ;
9188const MEMORY_BLOCKSIZE : usize = 32 ;
@@ -180,8 +177,7 @@ impl Clone for JitterRng {
180177
181178// Initialise to zero; must be positive
182179#[ 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 ) ;
185181
186182impl JitterRng {
187183 /// 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