summaryrefslogtreecommitdiffstats
path: root/futures
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:22:56 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:13 +0100
commit9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (patch)
treedd8a9407058915c152ce6544ba20b75240ca85be /futures
parent28caeccf22d163e9014b5ed26334b6085683a28b (diff)
downloadiced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.gz
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.bz2
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.zip
Run `cargo fmt`
Diffstat (limited to 'futures')
-rw-r--r--futures/src/backend/native/tokio.rs2
-rw-r--r--futures/src/event.rs2
-rw-r--r--futures/src/keyboard.rs2
-rw-r--r--futures/src/runtime.rs2
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.