aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorHayashi Mikihiro <34ttrweoewiwe28@gmail.com>2024-08-16 13:49:50 +0900
committerGitHub <noreply@github.com>2024-08-16 04:49:50 +0000
commit6816d11f887ea0f72943d900654c999d763772b5 (patch)
tree1a915bb00c38153ac9115d4952d0ce4e605cc3d3 /support
parent4cc1b6854616ae5f4b2455aedcd3e1fe9251a6a1 (diff)
downloadservo-6816d11f887ea0f72943d900654c999d763772b5.tar.gz
servo-6816d11f887ea0f72943d900654c999d763772b5.zip
replace once_cell (#33080)
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
Diffstat (limited to 'support')
-rw-r--r--support/crown/Cargo.toml1
-rw-r--r--support/crown/tests/compile_test.rs4
2 files changed, 2 insertions, 3 deletions
diff --git a/support/crown/Cargo.toml b/support/crown/Cargo.toml
index 100b0e6d5e4..8c2bc3a5306 100644
--- a/support/crown/Cargo.toml
+++ b/support/crown/Cargo.toml
@@ -11,7 +11,6 @@ publish = false
# so it needs to make sense without the workspace manifest.
[dev-dependencies]
compiletest_rs = { version = "0.11", features = ["tmp"] }
-once_cell = "1"
[features]
default = ["unrooted_must_root_lint", "trace_in_no_trace_lint"]
diff --git a/support/crown/tests/compile_test.rs b/support/crown/tests/compile_test.rs
index 32f8d6c42fd..6cefdd2d5b5 100644
--- a/support/crown/tests/compile_test.rs
+++ b/support/crown/tests/compile_test.rs
@@ -4,11 +4,11 @@
use std::env;
use std::path::PathBuf;
+use std::sync::LazyLock;
use compiletest_rs as compiletest;
-use once_cell::sync::Lazy;
-static PROFILE_PATH: Lazy<PathBuf> = Lazy::new(|| {
+static PROFILE_PATH: LazyLock<PathBuf> = LazyLock::new(|| {
let current_exe_path = env::current_exe().unwrap();
let deps_path = current_exe_path.parent().unwrap();
let profile_path = deps_path.parent().unwrap();