summaryrefslogtreecommitdiffstats
path: root/futures
diff options
context:
space:
mode:
Diffstat (limited to 'futures')
-rw-r--r--futures/src/backend/native/async_std.rs1
-rw-r--r--futures/src/backend/native/smol.rs1
-rw-r--r--futures/src/backend/native/thread_pool.rs1
-rw-r--r--futures/src/backend/native/tokio.rs2
-rw-r--r--futures/src/backend/null.rs1
-rw-r--r--futures/src/executor.rs2
-rw-r--r--futures/src/stream.rs2
7 files changed, 0 insertions, 10 deletions
diff --git a/futures/src/backend/native/async_std.rs b/futures/src/backend/native/async_std.rs
index 86714f45..be258b26 100644
--- a/futures/src/backend/native/async_std.rs
+++ b/futures/src/backend/native/async_std.rs
@@ -1,5 +1,4 @@
//! An `async-std` backend.
-use futures::Future;
/// An `async-std` executor.
#[derive(Debug)]
diff --git a/futures/src/backend/native/smol.rs b/futures/src/backend/native/smol.rs
index 8d448e7f..9ac6a27d 100644
--- a/futures/src/backend/native/smol.rs
+++ b/futures/src/backend/native/smol.rs
@@ -1,5 +1,4 @@
//! A `smol` backend.
-use futures::Future;
/// A `smol` executor.
#[derive(Debug)]
diff --git a/futures/src/backend/native/thread_pool.rs b/futures/src/backend/native/thread_pool.rs
index c96f2682..a90cc53a 100644
--- a/futures/src/backend/native/thread_pool.rs
+++ b/futures/src/backend/native/thread_pool.rs
@@ -1,5 +1,4 @@
//! A `ThreadPool` backend.
-use futures::Future;
/// A thread pool executor for futures.
pub type Executor = futures::executor::ThreadPool;
diff --git a/futures/src/backend/native/tokio.rs b/futures/src/backend/native/tokio.rs
index 0fd5da41..911d788c 100644
--- a/futures/src/backend/native/tokio.rs
+++ b/futures/src/backend/native/tokio.rs
@@ -1,5 +1,4 @@
//! A `tokio` backend.
-use futures::Future;
/// A `tokio` executor.
pub type Executor = tokio::runtime::Runtime;
@@ -27,7 +26,6 @@ pub mod time {
use crate::subscription::Subscription;
use futures::stream;
- use std::future::Future;
/// Returns a [`Subscription`] that produces messages at a set interval.
///
diff --git a/futures/src/backend/null.rs b/futures/src/backend/null.rs
index 609b8b3f..f31415b9 100644
--- a/futures/src/backend/null.rs
+++ b/futures/src/backend/null.rs
@@ -1,5 +1,4 @@
//! A backend that does nothing!
-use futures::Future;
/// An executor that drops all the futures, instead of spawning them.
#[derive(Debug)]
diff --git a/futures/src/executor.rs b/futures/src/executor.rs
index 3b0d4af1..9c14a2c9 100644
--- a/futures/src/executor.rs
+++ b/futures/src/executor.rs
@@ -1,8 +1,6 @@
//! Choose your preferred executor to power a runtime.
use crate::MaybeSend;
-use futures::Future;
-
/// A type that can run futures.
pub trait Executor: Sized {
/// Creates a new [`Executor`].
diff --git a/futures/src/stream.rs b/futures/src/stream.rs
index af2f8c99..72e1f04b 100644
--- a/futures/src/stream.rs
+++ b/futures/src/stream.rs
@@ -2,8 +2,6 @@
use futures::channel::mpsc;
use futures::stream::{self, Stream, StreamExt};
-use std::future::Future;
-
/// Creates a new [`Stream`] that produces the items sent from a [`Future`]
/// to the [`mpsc::Sender`] provided to the closure.
///