fix rust_beta_channel feature

This commit is contained in:
Skgland
2023-08-27 22:23:22 +02:00
committed by Bennet Bleßmann
parent cd0e45b70e
commit d24e6100a7

View File

@@ -60,7 +60,7 @@ fn global_atom_table() -> &'static RwLock<Weak<RwLock<AtomTable>>> {
{
// const Weak::new will be stabilized in 1.73 which is currently in beta,
// till then we need a OnceLock for initialization
static GLOBAL_ATOM_TABLE: RwLock<Weak<RwLock<AtomTable>>> = RwLock::new(Weak::new());
static GLOBAL_ATOM_TABLE: RwLock<Weak<RwLock<AtomTable>>> = RwLock::const_new(Weak::new());
&GLOBAL_ATOM_TABLE
}
#[cfg(not(feature = "rust_beta_channel"))]