Drop once_cell dependency

It's now part of the standard library :D
This commit is contained in:
Joscha 2025-02-22 16:42:26 +01:00
parent 866176dab6
commit e750f81b11
4 changed files with 3 additions and 5 deletions

1
Cargo.lock generated
View file

@ -344,7 +344,6 @@ dependencies = [
"jiff",
"linkify",
"log",
"once_cell",
"open",
"parking_lot",
"rusqlite",

View file

@ -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"

View file

@ -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

View file

@ -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<Emoji> = Lazy::new(Emoji::load);
pub static EMOJI: LazyLock<Emoji> = LazyLock::new(Emoji::load);
/// Convert HSL to RGB following [this approach from wikipedia][1].
///