diff options
Diffstat (limited to 'widget/src')
-rw-r--r-- | widget/src/helpers.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<svg::Handle> = Lazy::new(|| { + static LOGO: LazyLock<svg::Handle> = LazyLock::new(|| { svg::Handle::from_memory(include_bytes!("../assets/iced-logo.svg")) }); |