chore: use std::syncLazyLock

Also migrates workspace members to Rust 2024.
This commit is contained in:
Vukašin Vojinović 2025-09-03 20:22:06 +02:00 committed by Michael Murphy
parent b72b15d719
commit ea349aca82
15 changed files with 64 additions and 71 deletions

View file

@ -1,5 +1,5 @@
use crate::{composite::over, steps::steps, Component, Theme};
use palette::{rgb::Rgba, Darken, IntoColor, Lighten, Srgba, WithAlpha};
use crate::{Component, Theme, composite::over, steps::steps};
use palette::{Darken, IntoColor, Lighten, Srgba, WithAlpha, rgb::Rgba};
use std::{
fs::{self, File},
io::{self, Write},
@ -7,7 +7,7 @@ use std::{
path::Path,
};
use super::{to_rgba, OutputError};
use super::{OutputError, to_rgba};
impl Theme {
#[must_use]

View file

@ -1,4 +1,4 @@
use palette::{rgb::Rgba, Srgba};
use palette::{Srgba, rgb::Rgba};
use thiserror::Error;
use crate::Theme;

View file

@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};
use crate::Theme;
use super::{to_hex, OutputError};
use super::{OutputError, to_hex};
/// Represents the workbench.colorCustomizations section of a VS Code settings.json file
#[derive(Debug, Clone, Serialize, Deserialize)]