diff options
Diffstat (limited to 'components/remutex/lib.rs')
-rw-r--r-- | components/remutex/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/components/remutex/lib.rs b/components/remutex/lib.rs index bf897a8928a..60329e8a46d 100644 --- a/components/remutex/lib.rs +++ b/components/remutex/lib.rs @@ -10,17 +10,14 @@ //! It provides the same interface as https://github.com/rust-lang/rust/blob/5edaa7eefd76d4996dcf85dfc1c1a3f737087257/src/libstd/sys_common/remutex.rs //! so if those types are ever exported, we should be able to replace this implemtation. -#[macro_use] -extern crate lazy_static; -#[macro_use] -extern crate log; - use std::cell::{Cell, UnsafeCell}; use std::num::NonZeroUsize; use std::ops::Deref; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::{LockResult, Mutex, MutexGuard, PoisonError, TryLockError, TryLockResult}; +use log::trace; + /// A type for thread ids. // TODO: can we use the thread-id crate for this? @@ -28,7 +25,7 @@ use std::sync::{LockResult, Mutex, MutexGuard, PoisonError, TryLockError, TryLoc #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct ThreadId(NonZeroUsize); -lazy_static! { +lazy_static::lazy_static! { static ref THREAD_COUNT: AtomicUsize = AtomicUsize::new(1); } |