Drop lazy_static (#1168)

Co-authored-by: Stuart Reilly <sreilly@scottlogic.com>
This commit is contained in:
Stuart Reilly
2025-06-12 07:32:29 +01:00
committed by GitHub
parent c7163b63db
commit 30941ed26d
5 changed files with 22 additions and 34 deletions

View File

@@ -2,14 +2,13 @@ use std::cmp::{max, min};
use std::env;
use std::io::{self, Write};
use std::process::Command;
use std::sync::Mutex;
use std::sync::{LazyLock, Mutex};
use std::time::Duration;
use chrono::{Local, Timelike};
use color_eyre::eyre;
use color_eyre::eyre::Context;
use console::{style, Key, Term};
use lazy_static::lazy_static;
use notify_rust::{Notification, Timeout};
use rust_i18n::t;
use tracing::{debug, error};
@@ -19,9 +18,7 @@ use which_crate::which;
use crate::command::CommandExt;
use crate::report::StepResult;
lazy_static! {
static ref TERMINAL: Mutex<Terminal> = Mutex::new(Terminal::new());
}
static TERMINAL: LazyLock<Mutex<Terminal>> = LazyLock::new(|| Mutex::new(Terminal::new()));
#[cfg(unix)]
pub fn shell() -> String {