diff options
Diffstat (limited to 'futures')
-rw-r--r-- | futures/src/backend/native/tokio.rs | 2 | ||||
-rw-r--r-- | futures/src/event.rs | 2 | ||||
-rw-r--r-- | futures/src/keyboard.rs | 2 | ||||
-rw-r--r-- | futures/src/runtime.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/futures/src/backend/native/tokio.rs b/futures/src/backend/native/tokio.rs index c38ef566..0fd5da41 100644 --- a/futures/src/backend/native/tokio.rs +++ b/futures/src/backend/native/tokio.rs @@ -22,9 +22,9 @@ impl crate::Executor for Executor { pub mod time { //! Listen and react to time. + use crate::MaybeSend; use crate::core::time::{Duration, Instant}; use crate::subscription::Subscription; - use crate::MaybeSend; use futures::stream; use std::future::Future; diff --git a/futures/src/event.rs b/futures/src/event.rs index 72ea78ad..bd75d82c 100644 --- a/futures/src/event.rs +++ b/futures/src/event.rs @@ -1,8 +1,8 @@ //! Listen to runtime events. +use crate::MaybeSend; use crate::core::event::{self, Event}; use crate::core::window; use crate::subscription::{self, Subscription}; -use crate::MaybeSend; /// Returns a [`Subscription`] to all the ignored runtime events. /// diff --git a/futures/src/keyboard.rs b/futures/src/keyboard.rs index 35f6b6fa..036edb9c 100644 --- a/futures/src/keyboard.rs +++ b/futures/src/keyboard.rs @@ -1,9 +1,9 @@ //! Listen to keyboard events. +use crate::MaybeSend; use crate::core; use crate::core::event; use crate::core::keyboard::{Event, Key, Modifiers}; use crate::subscription::{self, Subscription}; -use crate::MaybeSend; /// Listens to keyboard key presses and calls the given function /// to map them into actual messages. diff --git a/futures/src/runtime.rs b/futures/src/runtime.rs index 157e2c67..0f30b469 100644 --- a/futures/src/runtime.rs +++ b/futures/src/runtime.rs @@ -2,7 +2,7 @@ use crate::subscription; use crate::{BoxFuture, BoxStream, Executor, MaybeSend}; -use futures::{channel::mpsc, Sink}; +use futures::{Sink, channel::mpsc}; use std::marker::PhantomData; /// A batteries-included runtime of commands and subscriptions. |