From d24e6100a7d1e3e95028d02dfc3885866729d883 Mon Sep 17 00:00:00 2001 From: Skgland Date: Sun, 27 Aug 2023 22:23:22 +0200 Subject: [PATCH] fix `rust_beta_channel` feature --- src/atom_table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atom_table.rs b/src/atom_table.rs index c27773af..523d8974 100644 --- a/src/atom_table.rs +++ b/src/atom_table.rs @@ -60,7 +60,7 @@ fn global_atom_table() -> &'static RwLock>> { { // 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>> = RwLock::new(Weak::new()); + static GLOBAL_ATOM_TABLE: RwLock>> = RwLock::const_new(Weak::new()); &GLOBAL_ATOM_TABLE } #[cfg(not(feature = "rust_beta_channel"))] -- 2.54.0