summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorYang Hau <vulxj0j8j8@gmail.com>2023-06-07 07:42:58 -0500
committerGitHub <noreply@github.com>2023-06-07 14:42:58 +0200
commit0dc1776202149bb59c21d1db8efe2a10c409b6e6 (patch)
tree559458439d86e43ec5376e33db7cc18b5139caca /src/eval
parent3d3ea9016f339b3753fc7e4c909d6a522a0b7a75 (diff)
refactor: Replace once_cell to std lib (#1402)
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/library.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/library.rs b/src/eval/library.rs
index 0067bf57..4978ada2 100644
--- a/src/eval/library.rs
+++ b/src/eval/library.rs
@@ -4,7 +4,7 @@ use std::num::NonZeroUsize;
use comemo::Tracked;
use ecow::EcoString;
-use once_cell::sync::OnceCell;
+use std::sync::OnceLock;
use super::{Args, Dynamic, Module, Value, Vm};
use crate::diag::SourceResult;
@@ -158,7 +158,7 @@ impl Hash for LangItems {
/// Global storage for lang items.
#[doc(hidden)]
-pub static LANG_ITEMS: OnceCell<LangItems> = OnceCell::new();
+pub static LANG_ITEMS: OnceLock<LangItems> = OnceLock::new();
/// Set the lang items.
///