diff options
author | 2024-10-03 22:27:25 -0500 | |
---|---|---|
committer | 2025-01-06 22:56:48 +0100 | |
commit | 0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a (patch) | |
tree | a0d28dac23fef014f602ddd7eafe1ef1eea39d9f /examples/visible_bounds | |
parent | b156087fcf10011b2ee53c74198ba9fc443a1caa (diff) | |
download | iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.gz iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.bz2 iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.zip |
chore: remove once_cell dependency
Diffstat (limited to 'examples/visible_bounds')
-rw-r--r-- | examples/visible_bounds/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/visible_bounds/src/main.rs | 10 |
2 files changed, 5 insertions, 7 deletions
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<container::Id> = - Lazy::new(|| container::Id::new("outer")); -static INNER_CONTAINER: Lazy<container::Id> = - Lazy::new(|| container::Id::new("inner")); +static OUTER_CONTAINER: LazyLock<container::Id> = + LazyLock::new(|| container::Id::new("outer")); +static INNER_CONTAINER: LazyLock<container::Id> = + LazyLock::new(|| container::Id::new("inner")); |