diff options
author | 2022-11-03 05:09:07 +0100 | |
---|---|---|
committer | 2022-11-03 05:09:07 +0100 | |
commit | 921c94162e50b09604fafeeb319c4a424d64be0e (patch) | |
tree | eff2e63d6cbef2732bd9f29c5733181191ef0a12 /examples/todos | |
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/todos')
-rw-r--r-- | examples/todos/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/todos/src/main.rs | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/todos/Cargo.toml b/examples/todos/Cargo.toml index 2326ffc6..7ad4d558 100644 --- a/examples/todos/Cargo.toml +++ b/examples/todos/Cargo.toml @@ -9,7 +9,7 @@ publish = false iced = { path = "../..", features = ["async-std", "debug"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -lazy_static = "1.4" +once_cell = "1.15" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] async-std = "1.0" diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index bddc0e71..be48ae8c 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -11,12 +11,10 @@ use iced::window; use iced::{Application, Element}; use iced::{Color, Command, Font, Length, Settings, Subscription}; -use lazy_static::lazy_static; +use once_cell::sync::Lazy; use serde::{Deserialize, Serialize}; -lazy_static! { - static ref INPUT_ID: text_input::Id = text_input::Id::unique(); -} +static INPUT_ID: Lazy<text_input::Id> = Lazy::new(text_input::Id::unique); pub fn main() -> iced::Result { Todos::run(Settings { |