diff options
author | 2025-02-21 01:22:56 +0100 | |
---|---|---|
committer | 2025-02-21 01:37:13 +0100 | |
commit | 9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (patch) | |
tree | dd8a9407058915c152ce6544ba20b75240ca85be /winit | |
parent | 28caeccf22d163e9014b5ed26334b6085683a28b (diff) | |
download | iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.gz iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.tar.bz2 iced-9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd.zip |
Run `cargo fmt`
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/program.rs | 8 | ||||
-rw-r--r-- | winit/src/program/state.rs | 2 | ||||
-rw-r--r-- | winit/src/proxy.rs | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs index 9a64fa51..c57c0b1b 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -20,9 +20,9 @@ use crate::futures::futures::{Future, StreamExt}; use crate::futures::subscription::{self, Subscription}; use crate::futures::{Executor, Runtime}; use crate::graphics; -use crate::graphics::{compositor, Compositor}; -use crate::runtime::user_interface::{self, UserInterface}; +use crate::graphics::{Compositor, compositor}; use crate::runtime::Debug; +use crate::runtime::user_interface::{self, UserInterface}; use crate::runtime::{self, Action, Task}; use crate::{Clipboard, Error, Proxy, Settings}; @@ -406,7 +406,9 @@ where .with_canvas(self.canvas.take()) }; - log::info!("Window attributes for id `{id:#?}`: {window_attributes:#?}"); + log::info!( + "Window attributes for id `{id:#?}`: {window_attributes:#?}" + ); // On macOS, the `position` in `WindowAttributes` represents the "inner" // position of the window; while on other platforms it's the "outer" position. diff --git a/winit/src/program/state.rs b/winit/src/program/state.rs index e883d04a..911e84fe 100644 --- a/winit/src/program/state.rs +++ b/winit/src/program/state.rs @@ -1,6 +1,6 @@ use crate::conversion; -use crate::core::{mouse, theme, window}; use crate::core::{Color, Size}; +use crate::core::{mouse, theme, window}; use crate::graphics::Viewport; use crate::program::Program; diff --git a/winit/src/proxy.rs b/winit/src/proxy.rs index d8ad8b3f..d8d3f4a2 100644 --- a/winit/src/proxy.rs +++ b/winit/src/proxy.rs @@ -1,8 +1,8 @@ use crate::futures::futures::{ + Future, Sink, StreamExt, channel::mpsc, select, task::{Context, Poll}, - Future, Sink, StreamExt, }; use crate::runtime::Action; use std::pin::Pin; |