mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:38:43 +02:00
Remove once_cell dependency from nu-test-support create. (#8568)
I was looking where we could remove the usage of once-cell dependency. As for now, I only found one place. Not a terrible improvement, but at least, it removes a dependency nu-test-support crate. Relies on `Mutex::new` constified in Rust 1.63.0
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
#![cfg(debug_assertions)]
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::sync::Mutex;
|
||||
|
||||
use nu_utils::locale::LOCALE_OVERRIDE_ENV_VAR;
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
static LOCALE_OVERRIDE_MUTEX: Lazy<Arc<Mutex<()>>> = Lazy::new(Default::default);
|
||||
static LOCALE_OVERRIDE_MUTEX: Mutex<()> = Mutex::new(());
|
||||
|
||||
/// Run a closure in a fake locale environment.
|
||||
///
|
||||
|
Reference in New Issue
Block a user