aboutsummaryrefslogtreecommitdiffstats
path: root/components/remutex/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/remutex/lib.rs')
-rw-r--r--components/remutex/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/remutex/lib.rs b/components/remutex/lib.rs
index 2589a6d1162..cfdb1b2c7dc 100644
--- a/components/remutex/lib.rs
+++ b/components/remutex/lib.rs
@@ -10,12 +10,11 @@
//! It provides the same interface as https://github.com/rust-lang/rust/blob/master/src/libstd/sys/common/remutex.rs
//! so if those types are ever exported, we should be able to replace this implemtation.
-extern crate nonzero;
#[macro_use] extern crate lazy_static;
#[macro_use] extern crate log;
-use nonzero::NonZeroUsize;
use std::cell::{Cell, UnsafeCell};
+use std::num::NonZeroUsize;
use std::ops::Deref;
use std::sync::{LockResult, Mutex, MutexGuard, PoisonError, TryLockError, TryLockResult};
use std::sync::atomic::{AtomicUsize, Ordering};