chore: use std::sync::LazyLock

Removes `once_cell` as a direct dependency.
This commit is contained in:
Vukašin Vojinović 2025-08-12 19:59:56 +02:00 committed by Michael Murphy
parent 467716c167
commit c3fafd3910
42 changed files with 77 additions and 106 deletions

View file

@ -27,8 +27,6 @@ use cosmic::{
Element, Task, Theme,
};
use once_cell::sync::Lazy;
use crate::{
config,
wayland::WorkspaceEvent,
@ -37,10 +35,11 @@ use crate::{
use std::{
process::Command as ShellCommand,
sync::LazyLock,
time::{Duration, Instant},
};
static AUTOSIZE_MAIN_ID: Lazy<Id> = Lazy::new(|| Id::new("autosize-main"));
static AUTOSIZE_MAIN_ID: LazyLock<Id> = LazyLock::new(|| Id::new("autosize-main"));
pub fn run() -> cosmic::iced::Result {
cosmic::applet::run::<IcedWorkspacesApplet>(())