replace ref_thread_local::ref_thread_local! with std::thread_local!

removes `ref_thread_local` which was still at 0.0.0 released October 2018 while latest 0.1.1 was released mid November 2021

fixes libraries.rs UB
This commit is contained in:
Bennet Bleßmann
2024-07-06 16:56:41 +02:00
parent fee7ba58b0
commit 1d66f91a41
8 changed files with 33 additions and 27 deletions

View File

@@ -82,8 +82,8 @@ use indexmap::IndexMap;\
writeln!(
libraries,
"\
ref_thread_local::ref_thread_local! {{
pub(crate) static managed LIBRARIES: IndexMap<&'static str, &'static str> = {{
std::thread_local!{{
static LIBRARIES: IndexMap<&'static str, &'static str> = {{
let mut m = IndexMap::new();"
)
.unwrap();