Skip to content

Commit a9a4aa0

Browse files
committed
Tweak imports in tests
1 parent a0d9554 commit a9a4aa0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

futures/tests/future_join.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use futures::executor::block_on;
2-
use futures::future::Future;
2+
use futures::future::{self, Future};
33
use std::task::Poll;
44

55
/// This tests verifies (through miri) that self-referencing
@@ -21,7 +21,7 @@ async fn trouble() {
2121

2222
fn yield_now() -> impl Future<Output = ()> {
2323
let mut yielded = false;
24-
std::future::poll_fn(move |cx| {
24+
future::poll_fn(move |cx| {
2525
if core::mem::replace(&mut yielded, true) {
2626
Poll::Ready(())
2727
} else {

futures/tests/future_try_join_all.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use futures::executor::block_on;
2+
use futures::future::{err, ok, try_join_all, Future, TryJoinAll};
23
use futures::pin_mut;
3-
use futures_util::future::{err, ok, try_join_all, TryJoinAll};
44
use std::fmt::Debug;
5-
use std::future::Future;
65

76
#[track_caller]
87
fn assert_done<T>(actual_fut: impl Future<Output = T>, expected: T)

0 commit comments

Comments
 (0)