aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/shared_lock.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2017-04-30 15:18:01 -0700
committerBobby Holley <bobbyholley@gmail.com>2017-05-02 17:35:44 -0700
commitd78ca4c4f9f1866204cbb420b284be1cbc137712 (patch)
tree49c5017f957b030c6c38a2892993ec5e798a2e6e /components/style/shared_lock.rs
parent6d8fc600b88dc2f393d7ff3e57d140891343c988 (diff)
downloadservo-d78ca4c4f9f1866204cbb420b284be1cbc137712.tar.gz
servo-d78ca4c4f9f1866204cbb420b284be1cbc137712.zip
Use StyleArc in the style system.
MozReview-Commit-ID: flF0fv9E9M
Diffstat (limited to 'components/style/shared_lock.rs')
-rw-r--r--components/style/shared_lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/shared_lock.rs b/components/style/shared_lock.rs
index 2dec153f342..360118d472e 100644
--- a/components/style/shared_lock.rs
+++ b/components/style/shared_lock.rs
@@ -10,7 +10,7 @@ use atomic_refcell::{AtomicRefCell, AtomicRef, AtomicRefMut};
use parking_lot::RwLock;
use std::cell::UnsafeCell;
use std::fmt;
-use std::sync::Arc;
+use stylearc::Arc;
/// A shared read/write lock that can protect multiple objects.
///
@@ -149,7 +149,7 @@ impl<T: fmt::Debug> fmt::Debug for Locked<T> {
impl<T> Locked<T> {
#[cfg(feature = "servo")]
fn same_lock_as(&self, lock: &SharedRwLock) -> bool {
- ::arc_ptr_eq(&self.shared_lock.arc, &lock.arc)
+ Arc::ptr_eq(&self.shared_lock.arc, &lock.arc)
}
#[cfg(feature = "gecko")]