Skip to content

Commit 778e616

Browse files
taiki-ecramertj
authored andcommitted
Remove deprecated ATOMIC_USIZE_INIT
1 parent 052add8 commit 778e616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

futures-channel/tests/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use futures::executor::block_on;
55
use futures::future::poll_fn;
66
use futures::stream::StreamExt;
77
use futures::sink::SinkExt;
8-
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
8+
use std::sync::atomic::{AtomicUsize, Ordering};
99
use std::thread;
1010

1111
#[test]
@@ -52,7 +52,7 @@ fn drop_rx() {
5252

5353
#[test]
5454
fn drop_order() {
55-
static DROPS: AtomicUsize = ATOMIC_USIZE_INIT;
55+
static DROPS: AtomicUsize = AtomicUsize::new(0);
5656
let (mut tx, rx) = mpsc::channel(1);
5757

5858
struct A;

0 commit comments

Comments
 (0)