Skip to content

Commit 7a4d759

Browse files
authored
fix(deps): Use const init for Mutex (#447)
1 parent fea8043 commit 7a4d759

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ rustversion = "1.0"
3939
trybuild = { version = "1.0.89", features = ["diff"] }
4040
syn = { version = "2.0.87", features = ["full"] }
4141
regex = "1.10"
42-
lazy_static = "1.4"
4342

4443
serde = { version = "1.0.196", features = ["derive"] }
4544
serde_json = "1.0.113"

tests/color_format.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![cfg(feature = "fancy-no-backtrace")]
22

3-
use lazy_static::lazy_static;
43
use miette::{Diagnostic, MietteHandler, MietteHandlerOpts, ReportHandler, RgbColors};
54
use regex::Regex;
65
use std::ffi::OsString;
@@ -69,9 +68,8 @@ impl Drop for EnvVarGuard<'_> {
6968
}
7069
}
7170

72-
lazy_static! {
73-
static ref COLOR_ENV_VARS: Mutex<()> = Mutex::new(());
74-
}
71+
static COLOR_ENV_VARS: Mutex<()> = Mutex::new(());
72+
7573

7674
/// Assert the color format used by a handler with different levels of terminal
7775
/// support.

0 commit comments

Comments
 (0)