chore: use std::sync::LazyLock
Removes `once_cell` as a direct dependency.
This commit is contained in:
parent
467716c167
commit
c3fafd3910
42 changed files with 77 additions and 106 deletions
|
|
@ -10,5 +10,4 @@ tracing.workspace = true
|
|||
tracing-subscriber.workspace = true
|
||||
tracing-log.workspace = true
|
||||
cosmic-config.workspace = true
|
||||
once_cell.workspace = true
|
||||
serde.workspace = true
|
||||
|
|
|
|||
|
|
@ -16,12 +16,11 @@ use cosmic::{
|
|||
Task,
|
||||
};
|
||||
use cosmic_config::{Config, CosmicConfigEntry};
|
||||
use once_cell::sync::Lazy;
|
||||
use std::{env, fs, process::Command};
|
||||
use std::{env, fs, process::Command, sync::LazyLock};
|
||||
|
||||
mod config;
|
||||
|
||||
static AUTOSIZE_MAIN_ID: Lazy<Id> = Lazy::new(|| Id::new("autosize-main"));
|
||||
static AUTOSIZE_MAIN_ID: LazyLock<Id> = LazyLock::new(|| Id::new("autosize-main"));
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
struct Desktop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue