diff options
| author | Abdul-Rahman Sibahi <asibahi@users.noreply.github.com> | 2024-10-31 14:52:11 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 11:52:11 +0000 |
| commit | b969c01b282287b44c3e131f8c0c53dcbb304e30 (patch) | |
| tree | fe58484bfa76e7fe7a35bf0bffdc339b24621693 /tests/src/tests.rs | |
| parent | 644ed252dda1a0785d2bee577a89322416f4d950 (diff) | |
Replace `once_cell`'s `Lazy` as much as possible (#4617)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/src/tests.rs')
| -rw-r--r-- | tests/src/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 58bd7cf7..940c9e3c 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -8,10 +8,10 @@ mod run; mod world; use std::path::Path; +use std::sync::LazyLock; use std::time::Duration; use clap::Parser; -use once_cell::sync::Lazy; use parking_lot::Mutex; use rayon::iter::{ParallelBridge, ParallelIterator}; @@ -19,7 +19,7 @@ use crate::args::{CliArguments, Command}; use crate::logger::Logger; /// The parsed command line arguments. -static ARGS: Lazy<CliArguments> = Lazy::new(CliArguments::parse); +static ARGS: LazyLock<CliArguments> = LazyLock::new(CliArguments::parse); /// The directory where the test suite is located. const SUITE_PATH: &str = "tests/suite"; |
