diff options
author | 2025-01-06 23:00:21 +0100 | |
---|---|---|
committer | 2025-01-06 23:00:21 +0100 | |
commit | 2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0 (patch) | |
tree | e90af39c6bc4311cb8dca7c3989d75840418ba46 /examples | |
parent | 0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a (diff) | |
download | iced-2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0.tar.gz iced-2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0.tar.bz2 iced-2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0.zip |
Fix consistency of import ordering
Diffstat (limited to 'examples')
-rw-r--r-- | examples/loading_spinners/src/easing.rs | 4 | ||||
-rw-r--r-- | examples/scrollable/src/main.rs | 4 | ||||
-rw-r--r-- | examples/websocket/src/main.rs | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/examples/loading_spinners/src/easing.rs b/examples/loading_spinners/src/easing.rs index be644d31..8caf282d 100644 --- a/examples/loading_spinners/src/easing.rs +++ b/examples/loading_spinners/src/easing.rs @@ -1,10 +1,10 @@ -use std::sync::LazyLock; - use iced::Point; use lyon_algorithms::measure::PathMeasurements; use lyon_algorithms::path::{builder::NoAttributes, path::BuilderImpl, Path}; +use std::sync::LazyLock; + pub static EMPHASIZED: LazyLock<Easing> = LazyLock::new(|| { Easing::builder() .cubic_bezier_to([0.05, 0.0], [0.133333, 0.06], [0.166666, 0.4]) diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index bd12e43b..6359fb5a 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -1,11 +1,11 @@ -use std::sync::LazyLock; - use iced::widget::{ button, column, container, horizontal_space, progress_bar, radio, row, scrollable, slider, text, vertical_space, }; use iced::{Border, Center, Color, Element, Fill, Task, Theme}; +use std::sync::LazyLock; + static SCROLLABLE_ID: LazyLock<scrollable::Id> = LazyLock::new(scrollable::Id::unique); diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs index 399ce2ff..ae658471 100644 --- a/examples/websocket/src/main.rs +++ b/examples/websocket/src/main.rs @@ -1,11 +1,10 @@ mod echo; -use std::sync::LazyLock; - use iced::widget::{ self, button, center, column, row, scrollable, text, text_input, }; use iced::{color, Center, Element, Fill, Subscription, Task}; +use std::sync::LazyLock; pub fn main() -> iced::Result { iced::application("WebSocket - Iced", WebSocket::update, WebSocket::view) |