diff options
author | 2022-11-03 05:09:07 +0100 | |
---|---|---|
committer | 2022-11-03 05:09:07 +0100 | |
commit | 921c94162e50b09604fafeeb319c4a424d64be0e (patch) | |
tree | eff2e63d6cbef2732bd9f29c5733181191ef0a12 /examples/websocket/src | |
parent | 93e309f491a8941bafb919e75d660e65071475f4 (diff) | |
parent | 231d2fd8454eb9d24ba970131d4d7339cc0c8d51 (diff) | |
download | iced-921c94162e50b09604fafeeb319c4a424d64be0e.tar.gz iced-921c94162e50b09604fafeeb319c4a424d64be0e.tar.bz2 iced-921c94162e50b09604fafeeb319c4a424d64be0e.zip |
Merge branch 'master' into fear/linear-gradients
Diffstat (limited to 'examples/websocket/src')
-rw-r--r-- | examples/websocket/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs index 3902e04c..ff2929da 100644 --- a/examples/websocket/src/main.rs +++ b/examples/websocket/src/main.rs @@ -8,6 +8,7 @@ use iced::widget::{ use iced::{ Application, Color, Command, Element, Length, Settings, Subscription, Theme, }; +use once_cell::sync::Lazy; pub fn main() -> iced::Result { WebSocket::run(Settings::default()) @@ -165,6 +166,4 @@ impl Default for State { } } -lazy_static::lazy_static! { - static ref MESSAGE_LOG: scrollable::Id = scrollable::Id::unique(); -} +static MESSAGE_LOG: Lazy<scrollable::Id> = Lazy::new(scrollable::Id::unique); |