Remove unnecessary Future imports
This commit is contained in:
parent
33a39bc83a
commit
c12beecd38
10 changed files with 0 additions and 13 deletions
|
|
@ -196,7 +196,6 @@ mod grid {
|
|||
Color, Element, Fill, Point, Rectangle, Renderer, Size, Theme, Vector,
|
||||
};
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
use std::future::Future;
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
pub struct Grid {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
//! An `async-std` backend.
|
||||
use futures::Future;
|
||||
|
||||
/// An `async-std` executor.
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
//! A `smol` backend.
|
||||
use futures::Future;
|
||||
|
||||
/// A `smol` executor.
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
//! A `ThreadPool` backend.
|
||||
use futures::Future;
|
||||
|
||||
/// A thread pool executor for futures.
|
||||
pub type Executor = futures::executor::ThreadPool;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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`].
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use raw_window_handle::{HasDisplayHandle, HasWindowHandle};
|
|||
use thiserror::Error;
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::future::Future;
|
||||
|
||||
/// A graphics compositor that can draw to windows.
|
||||
pub trait Compositor: Sized {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use crate::futures::futures::future::{self, FutureExt};
|
|||
use crate::futures::futures::stream::{self, Stream, StreamExt};
|
||||
use crate::futures::{BoxStream, MaybeSend, boxed_stream};
|
||||
|
||||
use std::future::Future;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[doc(no_inline)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue