diff --git a/Cargo.toml b/Cargo.toml index 2b59fbf7..28b0f6bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,6 @@ chrono = { version = "0.4", features = ['serde'] } fern = "0.6.1" iced = { version = "0.9", features = ["tokio", "lazy", "advanced", "image"] } log = "0.4.16" -once_cell = "1.18.0" palette = "=0.7.2" thiserror = "1.0.30" tokio = { version = "1.0", features = ["rt", "fs", "process"] } diff --git a/src/font.rs b/src/font.rs index 9b1788ed..80955467 100644 --- a/src/font.rs +++ b/src/font.rs @@ -1,5 +1,6 @@ +use std::sync::OnceLock; + use data::Config; -use once_cell::sync::OnceCell; use iced::font::{self, Error}; use iced::Command; @@ -14,14 +15,14 @@ pub const ICON: iced::Font = iced::Font { #[derive(Debug, Clone)] pub struct Font { bold: bool, - inner: OnceCell, + inner: OnceLock, } impl Font { const fn new(bold: bool) -> Self { Self { bold, - inner: OnceCell::new(), + inner: OnceLock::new(), } }