aboutsummaryrefslogtreecommitdiffstats
path: root/components/remutex/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-05-24 12:15:12 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-06-16 00:14:41 +0200
commite39f7413211507cb2f30008503b53d9c44070e38 (patch)
tree86c92b4eec5dc69d815ded5cf6a9c42d8f183e94 /components/remutex/lib.rs
parentd55a003c92838a1e76cd9a978e9cae1ad37e30b5 (diff)
downloadservo-e39f7413211507cb2f30008503b53d9c44070e38.tar.gz
servo-e39f7413211507cb2f30008503b53d9c44070e38.zip
Remove components/nonzero, use std::num::NonZero instead
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};