We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e645f commit b5073baCopy full SHA for b5073ba
src/lib.rs
@@ -146,10 +146,10 @@ use std::{
146
ops::Range,
147
panic,
148
path::{Path, PathBuf},
149
- sync::Mutex,
+ sync::{LazyLock, Mutex},
150
};
151
152
-use once_cell::sync::{Lazy, OnceCell};
+use once_cell::sync::OnceCell;
153
154
const HELP: &str = "
155
You can update all `expect!` tests by running:
@@ -467,7 +467,7 @@ struct Runtime {
467
help_printed: bool,
468
per_file: HashMap<&'static str, FileRuntime>,
469
}
470
-static RT: Lazy<Mutex<Runtime>> = Lazy::new(Default::default);
+static RT: LazyLock<Mutex<Runtime>> = LazyLock::new(Default::default);
471
472
impl Runtime {
473
fn fail_expect(expect: &Expect, expected: &str, actual: &str) {
0 commit comments