From: Skgland Date: Sun, 27 Aug 2023 20:23:22 +0000 (+0200) Subject: fix `rust_beta_channel` feature X-Git-Tag: remove~112^2~3 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=d24e6100a7d1e3e95028d02dfc3885866729d883;p=scryer-prolog.git fix `rust_beta_channel` feature --- 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"))]