diff options
Diffstat (limited to 'src/default.rs')
-rw-r--r-- | src/default.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/default.rs b/src/default.rs index 1deac21..b7797ce 100644 --- a/src/default.rs +++ b/src/default.rs @@ -6,7 +6,7 @@ use crate::collector::{Collector, LocalHandle}; use crate::guard::Guard; -use lazy_static::lazy_static; +use crate::primitive::{lazy_static, thread_local}; lazy_static! { /// The global data for the default garbage collector. @@ -45,7 +45,7 @@ where .unwrap_or_else(|_| f(&COLLECTOR.register())) } -#[cfg(test)] +#[cfg(all(test, not(crossbeam_loom)))] mod tests { use crossbeam_utils::thread; |