aboutsummaryrefslogtreecommitdiffstats
path: root/components/remutex
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
parentd55a003c92838a1e76cd9a978e9cae1ad37e30b5 (diff)
downloadservo-e39f7413211507cb2f30008503b53d9c44070e38.tar.gz
servo-e39f7413211507cb2f30008503b53d9c44070e38.zip
Remove components/nonzero, use std::num::NonZero instead
Diffstat (limited to 'components/remutex')
-rw-r--r--components/remutex/Cargo.toml1
-rw-r--r--components/remutex/lib.rs3
2 files changed, 1 insertions, 3 deletions
diff --git a/components/remutex/Cargo.toml b/components/remutex/Cargo.toml
index a91667e08cc..4f471f5378d 100644
--- a/components/remutex/Cargo.toml
+++ b/components/remutex/Cargo.toml
@@ -14,4 +14,3 @@ doctest = false
[dependencies]
lazy_static = "1"
log = "0.4"
-nonzero = {path = "../nonzero"}
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};