From 0e8c3fe30fd7c9a9ff54d2f6d75324575df5511a Mon Sep 17 00:00:00 2001 From: Tommy Volk Date: Thu, 3 Oct 2024 22:27:25 -0500 Subject: chore: remove once_cell dependency --- widget/src/helpers.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widget/src/helpers.rs') diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index cdfd2daf..563d84e2 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -1706,11 +1706,12 @@ where + 'a, Theme: text::Catalog + crate::svg::Catalog + 'a, { + use std::sync::LazyLock; + use crate::core::{Alignment, Font}; use crate::svg; - use once_cell::sync::Lazy; - static LOGO: Lazy = Lazy::new(|| { + static LOGO: LazyLock = LazyLock::new(|| { svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg")) }); -- cgit From 2b8b3fd413b03d6b79f1de90bd42eb43c5cd6aa0 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 6 Jan 2025 23:00:21 +0100 Subject: Fix consistency of import ordering --- widget/src/helpers.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widget/src/helpers.rs') diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 563d84e2..5a0f8107 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -1706,10 +1706,9 @@ where + 'a, Theme: text::Catalog + crate::svg::Catalog + 'a, { - use std::sync::LazyLock; - use crate::core::{Alignment, Font}; use crate::svg; + use std::sync::LazyLock; static LOGO: LazyLock = LazyLock::new(|| { svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg")) -- cgit