diff --git a/Cargo.lock b/Cargo.lock index e77a3ad..6b262c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -344,7 +344,6 @@ dependencies = [ "jiff", "linkify", "log", - "once_cell", "open", "parking_lot", "rusqlite", diff --git a/Cargo.toml b/Cargo.toml index a58b43d..93e13c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ edit = "0.1.5" jiff = "0.2.1" linkify = "0.10.0" log = { version = "0.4.25", features = ["std"] } -once_cell = "1.20.2" open = "5.3.2" parking_lot = "0.12.3" proc-macro2 = "1.0.93" diff --git a/cove/Cargo.toml b/cove/Cargo.toml index 0ca2a2f..3a60a5d 100644 --- a/cove/Cargo.toml +++ b/cove/Cargo.toml @@ -17,7 +17,6 @@ euphoxide.workspace = true jiff.workspace = true linkify.workspace = true log.workspace = true -once_cell.workspace = true open.workspace = true parking_lot.workspace = true rusqlite.workspace = true diff --git a/cove/src/euph/util.rs b/cove/src/euph/util.rs index fdf11a3..aff2192 100644 --- a/cove/src/euph/util.rs +++ b/cove/src/euph/util.rs @@ -1,9 +1,10 @@ +use std::sync::LazyLock; + use crossterm::style::{Color, Stylize}; use euphoxide::Emoji; -use once_cell::sync::Lazy; use toss::{Style, Styled}; -pub static EMOJI: Lazy = Lazy::new(Emoji::load); +pub static EMOJI: LazyLock = LazyLock::new(Emoji::load); /// Convert HSL to RGB following [this approach from wikipedia][1]. ///