aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-01-22 13:25:20 +0100
committerMs2ger <ms2ger@gmail.com>2015-01-22 14:49:25 +0100
commitfaefb27f3e8daed229bc8f15956e314fc01e31d9 (patch)
tree9f205fdb6e01dfca3ea28f5fc58429951fea007d /components/layout/layout_debug.rs
parent524966e3af8fbc871005cef460dc86c379a36034 (diff)
downloadservo-faefb27f3e8daed229bc8f15956e314fc01e31d9.tar.gz
servo-faefb27f3e8daed229bc8f15956e314fc01e31d9.zip
Use std::sync::atomic::Ordering explicitly.
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index 3b28362f326..aae0503d1eb 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -14,7 +14,7 @@ use serialize::json;
use std::borrow::ToOwned;
use std::cell::RefCell;
use std::io::File;
-use std::sync::atomic::{AtomicUint, SeqCst, INIT_ATOMIC_UINT};
+use std::sync::atomic::{AtomicUint, Ordering, INIT_ATOMIC_UINT};
thread_local!(static STATE_KEY: RefCell<Option<State>> = RefCell::new(None))
@@ -96,7 +96,7 @@ impl Drop for Scope {
/// which are often reallocated but represent essentially the
/// same data.
pub fn generate_unique_debug_id() -> u16 {
- unsafe { DEBUG_ID_COUNTER.fetch_add(1, SeqCst) as u16 }
+ unsafe { DEBUG_ID_COUNTER.fetch_add(1, Ordering::SeqCst) as u16 }
}
/// Begin a layout debug trace. If this has not been called,