mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
replace once_cell (#33080)
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
This commit is contained in:
parent
4cc1b68546
commit
6816d11f88
3 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue