diff --git a/Cargo.lock b/Cargo.lock index 43f96c11179..7c78896aad1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1135,7 +1135,6 @@ name = "crown" version = "0.0.1" dependencies = [ "compiletest_rs", - "once_cell", ] [[package]] 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 = Lazy::new(|| { +static PROFILE_PATH: LazyLock = 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();