summaryrefslogtreecommitdiffstats
path: root/runtime
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 /runtime
parent28caeccf22d163e9014b5ed26334b6085683a28b (diff)
downloadiced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.gz
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.bz2
iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.zip
Run `cargo fmt`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/font.rs2
-rw-r--r--runtime/src/multi_window/program.rs2
-rw-r--r--runtime/src/program.rs2
-rw-r--r--runtime/src/task.rs6
-rw-r--r--runtime/src/window.rs2
5 files changed, 7 insertions, 7 deletions
diff --git a/runtime/src/font.rs b/runtime/src/font.rs
index 75fdfc11..2d73566d 100644
--- a/runtime/src/font.rs
+++ b/runtime/src/font.rs
@@ -1,6 +1,6 @@
//! Load and use fonts.
-use crate::task::{self, Task};
use crate::Action;
+use crate::task::{self, Task};
use std::borrow::Cow;
/// An error while loading a font.
diff --git a/runtime/src/multi_window/program.rs b/runtime/src/multi_window/program.rs
index e8c71b26..4ea44791 100644
--- a/runtime/src/multi_window/program.rs
+++ b/runtime/src/multi_window/program.rs
@@ -1,8 +1,8 @@
//! Build interactive programs using The Elm Architecture.
+use crate::Task;
use crate::core::text;
use crate::core::window;
use crate::core::{Element, Renderer};
-use crate::Task;
/// The core of a user interface for a multi-window application following The Elm Architecture.
pub trait Program: Sized {
diff --git a/runtime/src/program.rs b/runtime/src/program.rs
index 77acf497..964157db 100644
--- a/runtime/src/program.rs
+++ b/runtime/src/program.rs
@@ -1,8 +1,8 @@
//! Build interactive programs using The Elm Architecture.
use crate::Task;
-use iced_core::text;
use iced_core::Element;
+use iced_core::text;
mod state;
diff --git a/runtime/src/task.rs b/runtime/src/task.rs
index 022483f7..105a4135 100644
--- a/runtime/src/task.rs
+++ b/runtime/src/task.rs
@@ -1,17 +1,17 @@
//! Create runtime tasks.
+use crate::Action;
use crate::core::widget;
use crate::futures::futures::channel::mpsc;
use crate::futures::futures::channel::oneshot;
use crate::futures::futures::future::{self, FutureExt};
use crate::futures::futures::stream::{self, Stream, StreamExt};
-use crate::futures::{boxed_stream, BoxStream, MaybeSend};
-use crate::Action;
+use crate::futures::{BoxStream, MaybeSend, boxed_stream};
use std::future::Future;
use std::sync::Arc;
#[doc(no_inline)]
-pub use sipper::{sipper, stream, Never, Sender, Sipper, Straw};
+pub use sipper::{Never, Sender, Sipper, Straw, sipper, stream};
/// A set of concurrent actions to be performed by the iced runtime.
///
diff --git a/runtime/src/window.rs b/runtime/src/window.rs
index 183fab97..ccd8721b 100644
--- a/runtime/src/window.rs
+++ b/runtime/src/window.rs
@@ -5,9 +5,9 @@ use crate::core::window::{
UserAttention,
};
use crate::core::{Point, Size};
+use crate::futures::Subscription;
use crate::futures::event;
use crate::futures::futures::channel::oneshot;
-use crate::futures::Subscription;
use crate::task::{self, Task};
pub use raw_window_handle;