summaryrefslogtreecommitdiffstats
path: root/examples/visible_bounds/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Tommy Volk <tvolk131@gmail.com>2024-10-03 22:27:25 -0500
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 22:56:48 +0100
commit0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a (patch)
treea0d28dac23fef014f602ddd7eafe1ef1eea39d9f /examples/visible_bounds/src/main.rs
parentb156087fcf10011b2ee53c74198ba9fc443a1caa (diff)
downloadiced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.gz
iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.bz2
iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.zip
chore: remove once_cell dependency
Diffstat (limited to 'examples/visible_bounds/src/main.rs')
-rw-r--r--examples/visible_bounds/src/main.rs10
1 files changed, 5 insertions, 5 deletions
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"));