Skip to content

Commit

Permalink
Tweak imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed May 2, 2024
1 parent f9dd281 commit c507ff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions futures/tests/future_join.rs
@@ -1,5 +1,5 @@
use futures::executor::block_on;
use futures::future::Future;
use futures::future::{self, Future};
use std::task::Poll;

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

fn yield_now() -> impl Future<Output = ()> {
let mut yielded = false;
std::future::poll_fn(move |cx| {
future::poll_fn(move |cx| {
if core::mem::replace(&mut yielded, true) {
Poll::Ready(())
} else {
Expand Down
3 changes: 1 addition & 2 deletions futures/tests/future_try_join_all.rs
@@ -1,8 +1,7 @@
use futures::executor::block_on;
use futures::future::{err, ok, try_join_all, Future, TryJoinAll};
use futures::pin_mut;
use futures_util::future::{err, ok, try_join_all, TryJoinAll};
use std::fmt::Debug;
use std::future::Future;

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

0 comments on commit c507ff8

Please sign in to comment.