diff options
author | 2025-01-06 23:09:15 +0100 | |
---|---|---|
committer | 2025-01-06 23:09:15 +0100 | |
commit | 717b296cdb17f22b410e2985b58e73af2199bfcc (patch) | |
tree | 6be1fe93925ea087e4f042119cc52a9e70c40d21 /examples/websocket/src/main.rs | |
parent | 634365564ea2bb2284561e8d300cf77a6f7db565 (diff) | |
parent | 2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0 (diff) | |
download | iced-717b296cdb17f22b410e2985b58e73af2199bfcc.tar.gz iced-717b296cdb17f22b410e2985b58e73af2199bfcc.tar.bz2 iced-717b296cdb17f22b410e2985b58e73af2199bfcc.zip |
Merge pull request #2626 from tvolk131/remove_once_cell
chore: remove once_cell dependency
Diffstat (limited to 'examples/websocket/src/main.rs')
-rw-r--r-- | examples/websocket/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs index 8b1efb41..ae658471 100644 --- a/examples/websocket/src/main.rs +++ b/examples/websocket/src/main.rs @@ -4,7 +4,7 @@ use iced::widget::{ self, button, center, column, row, scrollable, text, text_input, }; use iced::{color, Center, Element, Fill, Subscription, Task}; -use once_cell::sync::Lazy; +use std::sync::LazyLock; pub fn main() -> iced::Result { iced::application("WebSocket - Iced", WebSocket::update, WebSocket::view) @@ -138,4 +138,5 @@ enum State { Connected(echo::Connection), } -static MESSAGE_LOG: Lazy<scrollable::Id> = Lazy::new(scrollable::Id::unique); +static MESSAGE_LOG: LazyLock<scrollable::Id> = + LazyLock::new(scrollable::Id::unique); |