summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-01-06 23:09:15 +0100
committerLibravatar GitHub <noreply@github.com>2025-01-06 23:09:15 +0100
commit717b296cdb17f22b410e2985b58e73af2199bfcc (patch)
tree6be1fe93925ea087e4f042119cc52a9e70c40d21 /examples/scrollable/src/main.rs
parent634365564ea2bb2284561e8d300cf77a6f7db565 (diff)
parent2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0 (diff)
downloadiced-717b296cdb17f22b410e2985b58e73af2199bfcc.tar.gz
iced-717b296cdb17f22b410e2985b58e73af2199bfcc.tar.bz2
iced-717b296cdb17f22b410e2985b58e73af2199bfcc.zip
Merge pull request #2626 from tvolk131/remove_once_cell
chore: remove once_cell dependency
Diffstat (limited to 'examples/scrollable/src/main.rs')
-rw-r--r--examples/scrollable/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs
index de4f2f9a..6359fb5a 100644
--- a/examples/scrollable/src/main.rs
+++ b/examples/scrollable/src/main.rs
@@ -4,9 +4,10 @@ use iced::widget::{
};
use iced::{Border, Center, Color, Element, Fill, Task, Theme};
-use once_cell::sync::Lazy;
+use std::sync::LazyLock;
-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(