summaryrefslogtreecommitdiffstats
path: root/examples/websocket/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:28:47 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:14 +0100
commit91af1c5ed65d75d9da62d29254460b5ed79f96eb (patch)
tree4b05400d50e6a94e4f7049945c01fec2beffb2b2 /examples/websocket/src
parent9ceb467e6e12129b42d67a4a1ff3cb21bc7daadd (diff)
downloadiced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.gz
iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.tar.bz2
iced-91af1c5ed65d75d9da62d29254460b5ed79f96eb.zip
Update all `examples` to Rust 2024
Diffstat (limited to 'examples/websocket/src')
-rw-r--r--examples/websocket/src/echo.rs2
-rw-r--r--examples/websocket/src/echo/server.rs2
-rw-r--r--examples/websocket/src/main.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/websocket/src/echo.rs b/examples/websocket/src/echo.rs
index 149a260c..0f14af94 100644
--- a/examples/websocket/src/echo.rs
+++ b/examples/websocket/src/echo.rs
@@ -1,7 +1,7 @@
pub mod server;
use iced::futures;
-use iced::task::{sipper, Never, Sipper};
+use iced::task::{Never, Sipper, sipper};
use iced::widget::text;
use futures::channel::mpsc;
diff --git a/examples/websocket/src/echo/server.rs b/examples/websocket/src/echo/server.rs
index a696a7a4..1bb313b4 100644
--- a/examples/websocket/src/echo/server.rs
+++ b/examples/websocket/src/echo/server.rs
@@ -2,8 +2,8 @@ use iced::futures;
use futures::channel::mpsc;
use futures::{SinkExt, StreamExt};
-use warp::ws::WebSocket;
use warp::Filter;
+use warp::ws::WebSocket;
// Basic WebSocket echo server adapted from:
// https://github.com/seanmonstar/warp/blob/3ff2eaf41eb5ac9321620e5a6434d5b5ec6f313f/examples/websockets_chat.rs
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index ae658471..b918c479 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -3,7 +3,7 @@ mod echo;
use iced::widget::{
self, button, center, column, row, scrollable, text, text_input,
};
-use iced::{color, Center, Element, Fill, Subscription, Task};
+use iced::{Center, Element, Fill, Subscription, Task, color};
use std::sync::LazyLock;
pub fn main() -> iced::Result {