Skip to content

Commit 3fefced

Browse files
committed
Don't use deprecated ATOMIC_USIZE_INIT in tests
1 parent fada07b commit 3fefced

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/sort-panic-safe.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ use std::cmp::{self, Ordering};
1111
use std::panic;
1212
use std::sync::atomic::AtomicUsize;
1313
use std::sync::atomic::Ordering::Relaxed;
14-
#[allow(deprecated)]
15-
use std::sync::atomic::ATOMIC_USIZE_INIT;
1614
use std::thread;
1715

18-
#[allow(deprecated)]
19-
static VERSIONS: AtomicUsize = ATOMIC_USIZE_INIT;
16+
static VERSIONS: AtomicUsize = AtomicUsize::new(0);
2017

2118
lazy_static! {
2219
static ref DROP_COUNTS: Vec<AtomicUsize> = (0..20_000).map(|_| AtomicUsize::new(0)).collect();

0 commit comments

Comments
 (0)