From 0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a Mon Sep 17 00:00:00 2001 From: Tommy Volk Date: Thu, 3 Oct 2024 22:27:25 -0500 Subject: chore: remove once_cell dependency --- examples/visible_bounds/Cargo.toml | 2 -- examples/visible_bounds/src/main.rs | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'examples/visible_bounds') diff --git a/examples/visible_bounds/Cargo.toml b/examples/visible_bounds/Cargo.toml index 37594b84..1193334d 100644 --- a/examples/visible_bounds/Cargo.toml +++ b/examples/visible_bounds/Cargo.toml @@ -8,5 +8,3 @@ publish = false [dependencies] iced.workspace = true iced.features = ["debug"] - -once_cell.workspace = true diff --git a/examples/visible_bounds/src/main.rs b/examples/visible_bounds/src/main.rs index 77fec65e..f8f9f420 100644 --- a/examples/visible_bounds/src/main.rs +++ b/examples/visible_bounds/src/main.rs @@ -157,9 +157,9 @@ impl Example { } } -use once_cell::sync::Lazy; +use std::sync::LazyLock; -static OUTER_CONTAINER: Lazy = - Lazy::new(|| container::Id::new("outer")); -static INNER_CONTAINER: Lazy = - Lazy::new(|| container::Id::new("inner")); +static OUTER_CONTAINER: LazyLock = + LazyLock::new(|| container::Id::new("outer")); +static INNER_CONTAINER: LazyLock = + LazyLock::new(|| container::Id::new("inner")); -- cgit