diff options
Diffstat (limited to 'examples/websocket/src/echo.rs')
-rw-r--r-- | examples/websocket/src/echo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/websocket/src/echo.rs b/examples/websocket/src/echo.rs index 149a260c..1116d1ea 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; @@ -12,7 +12,7 @@ use async_tungstenite::tungstenite; use std::fmt; pub fn connect() -> impl Sipper<Never, Event> { - sipper(|mut output| async move { + sipper(async |mut output| { loop { const ECHO_SERVER: &str = "ws://127.0.0.1:3030"; |