We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052add8 commit 778e616Copy full SHA for 778e616
futures-channel/tests/channel.rs
@@ -5,7 +5,7 @@ use futures::executor::block_on;
5
use futures::future::poll_fn;
6
use futures::stream::StreamExt;
7
use futures::sink::SinkExt;
8
-use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
+use std::sync::atomic::{AtomicUsize, Ordering};
9
use std::thread;
10
11
#[test]
@@ -52,7 +52,7 @@ fn drop_rx() {
52
53
54
fn drop_order() {
55
- static DROPS: AtomicUsize = ATOMIC_USIZE_INIT;
+ static DROPS: AtomicUsize = AtomicUsize::new(0);
56
let (mut tx, rx) = mpsc::channel(1);
57
58
struct A;
0 commit comments