diff options
author | 2025-01-06 23:09:15 +0100 | |
---|---|---|
committer | 2025-01-06 23:09:15 +0100 | |
commit | 717b296cdb17f22b410e2985b58e73af2199bfcc (patch) | |
tree | 6be1fe93925ea087e4f042119cc52a9e70c40d21 /examples/visible_bounds/src/main.rs | |
parent | 634365564ea2bb2284561e8d300cf77a6f7db565 (diff) | |
parent | 2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0 (diff) | |
download | iced-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/visible_bounds/src/main.rs')
-rw-r--r-- | examples/visible_bounds/src/main.rs | 10 |
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")); |