chore: remove once_cell dependency
This commit is contained in:
parent
b156087fcf
commit
0e8c3fe30f
20 changed files with 80 additions and 96 deletions
|
|
@ -9,7 +9,6 @@ publish = false
|
|||
iced.workspace = true
|
||||
iced.features = ["debug", "tokio"]
|
||||
|
||||
once_cell.workspace = true
|
||||
warp = "0.3"
|
||||
|
||||
[dependencies.async-tungstenite]
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
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 once_cell::sync::Lazy;
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
iced::application("WebSocket - Iced", WebSocket::update, WebSocket::view)
|
||||
|
|
@ -138,4 +139,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue