about summary refs log tree commit diff
path: root/tests/test_utils
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-06-16 19:39:39 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-06-16 19:54:42 +0400
commitf095f802dcd0f5ead14539c3f11985b4a3562912 (patch)
tree84cf603fea0a7d7bc1cb7181515c9d8c59f1a103 /tests/test_utils
parentbd071bf5b2395edced30dfc5197eafb355c49b4d (diff)
Move/rename `lazy::Sync{OnceCell,Lazy}` to `sync::{Once,Lazy}Lock`
Diffstat (limited to 'tests/test_utils')
-rw-r--r--tests/test_utils/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils/mod.rs b/tests/test_utils/mod.rs
index 8a4de3f6def..ea8c54e08b3 100644
--- a/tests/test_utils/mod.rs
+++ b/tests/test_utils/mod.rs
@@ -1,9 +1,9 @@
 #![allow(dead_code)] // see https://github.com/rust-lang/rust/issues/46379
 
-use std::lazy::SyncLazy;
 use std::path::PathBuf;
+use std::sync::LazyLock;
 
-pub static CARGO_CLIPPY_PATH: SyncLazy<PathBuf> = SyncLazy::new(|| {
+pub static CARGO_CLIPPY_PATH: LazyLock<PathBuf> = LazyLock::new(|| {
     let mut path = std::env::current_exe().unwrap();
     assert!(path.pop()); // deps
     path.set_file_name("cargo-clippy");