chore: replace lazy_static with std::sync::LazyLock (#8815)

Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
This commit is contained in:
Rodolfo Olivieri
2026-05-11 19:47:31 -03:00
committed by GitHub
parent 831a7f27d3
commit 826a437d08
4 changed files with 12 additions and 17 deletions
+3 -4
View File
@@ -90,10 +90,9 @@ impl TestReport {
}
}
lazy_static::lazy_static! {
static ref TEST_REPORT: Arc<TestReport> = TestReport::new();
static ref ENV_LOCK: Mutex<()> = Mutex::new(());
}
static TEST_REPORT: std::sync::LazyLock<Arc<TestReport>> =
std::sync::LazyLock::new(TestReport::new);
static ENV_LOCK: std::sync::LazyLock<Mutex<()>> = std::sync::LazyLock::new(|| Mutex::new(()));
struct ProviderFixture {
name: String,