Skip to content

Commit b5073ba

Browse files
committed
Use std::sync::LazyLock instead of once_cell::Lazy
1 parent 23e645f commit b5073ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ use std::{
146146
ops::Range,
147147
panic,
148148
path::{Path, PathBuf},
149-
sync::Mutex,
149+
sync::{LazyLock, Mutex},
150150
};
151151

152-
use once_cell::sync::{Lazy, OnceCell};
152+
use once_cell::sync::OnceCell;
153153

154154
const HELP: &str = "
155155
You can update all `expect!` tests by running:
@@ -467,7 +467,7 @@ struct Runtime {
467467
help_printed: bool,
468468
per_file: HashMap<&'static str, FileRuntime>,
469469
}
470-
static RT: Lazy<Mutex<Runtime>> = Lazy::new(Default::default);
470+
static RT: LazyLock<Mutex<Runtime>> = LazyLock::new(Default::default);
471471

472472
impl Runtime {
473473
fn fail_expect(expect: &Expect, expected: &str, actual: &str) {

0 commit comments

Comments
 (0)