Remove unnecessary Future imports

This commit is contained in:
Héctor Ramón Jiménez 2025-02-21 01:41:42 +01:00
parent 33a39bc83a
commit c12beecd38
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
10 changed files with 0 additions and 13 deletions

View file

@ -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 {

View file

@ -1,5 +1,4 @@
//! An `async-std` backend.
use futures::Future;
/// An `async-std` executor.
#[derive(Debug)]

View file

@ -1,5 +1,4 @@
//! A `smol` backend.
use futures::Future;
/// A `smol` executor.
#[derive(Debug)]

View file

@ -1,5 +1,4 @@
//! A `ThreadPool` backend.
use futures::Future;
/// A thread pool executor for futures.
pub type Executor = futures::executor::ThreadPool;

View file

@ -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.
///

View file

@ -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)]

View file

@ -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`].

View file

@ -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.
///

View file

@ -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 {

View file

@ -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)]