fix(deps): Use const init for Mutex (#447)

This commit is contained in:
Expyron 2025-09-26 06:12:37 +02:00 committed by GitHub
parent fea8043b3e
commit 7a4d759c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -39,7 +39,6 @@ rustversion = "1.0"
trybuild = { version = "1.0.89", features = ["diff"] }
syn = { version = "2.0.87", features = ["full"] }
regex = "1.10"
lazy_static = "1.4"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"

View File

@ -1,6 +1,5 @@
#![cfg(feature = "fancy-no-backtrace")]
use lazy_static::lazy_static;
use miette::{Diagnostic, MietteHandler, MietteHandlerOpts, ReportHandler, RgbColors};
use regex::Regex;
use std::ffi::OsString;
@ -69,9 +68,8 @@ impl Drop for EnvVarGuard<'_> {
}
}
lazy_static! {
static ref COLOR_ENV_VARS: Mutex<()> = Mutex::new(());
}
static COLOR_ENV_VARS: Mutex<()> = Mutex::new(());
/// Assert the color format used by a handler with different levels of terminal
/// support.