summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/oneshot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/sync/oneshot.rs')
-rw-r--r--tokio/src/sync/oneshot.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs
index 3c757e9e..7b84f319 100644
--- a/tokio/src/sync/oneshot.rs
+++ b/tokio/src/sync/oneshot.rs
@@ -4,7 +4,6 @@ use crate::loom::cell::CausalCell;
use crate::loom::sync::atomic::AtomicUsize;
use crate::loom::sync::Arc;
-use futures_core::ready;
use std::fmt;
use std::future::Future;
use std::mem::MaybeUninit;
@@ -225,7 +224,7 @@ impl<T> Sender<T> {
/// }
/// ```
pub async fn closed(&mut self) {
- use futures_util::future::poll_fn;
+ use crate::future::poll_fn;
poll_fn(|cx| self.poll_closed(cx)).await
}