summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/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/scrollable/src/main.rs
parentb156087fcf10011b2ee53c74198ba9fc443a1caa (diff)
downloadiced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.gz
iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.tar.bz2
iced-0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a.zip
chore: remove once_cell dependency
Diffstat (limited to '')
-rw-r--r--examples/scrollable/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs
index de4f2f9a..bd12e43b 100644
--- a/examples/scrollable/src/main.rs
+++ b/examples/scrollable/src/main.rs
@@ -1,12 +1,13 @@
+use std::sync::LazyLock;
+
use iced::widget::{
button, column, container, horizontal_space, progress_bar, radio, row,
scrollable, slider, text, vertical_space,
};
use iced::{Border, Center, Color, Element, Fill, Task, Theme};
-use once_cell::sync::Lazy;
-
-static SCROLLABLE_ID: Lazy<scrollable::Id> = Lazy::new(scrollable::Id::unique);
+static SCROLLABLE_ID: LazyLock<scrollable::Id> =
+ LazyLock::new(scrollable::Id::unique);
pub fn main() -> iced::Result {
iced::application(