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