diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-22 13:25:20 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-22 14:49:25 +0100 |
commit | faefb27f3e8daed229bc8f15956e314fc01e31d9 (patch) | |
tree | 9f205fdb6e01dfca3ea28f5fc58429951fea007d /components/layout/flow_ref.rs | |
parent | 524966e3af8fbc871005cef460dc86c379a36034 (diff) | |
download | servo-faefb27f3e8daed229bc8f15956e314fc01e31d9.tar.gz servo-faefb27f3e8daed229bc8f15956e314fc01e31d9.zip |
Use std::sync::atomic::Ordering explicitly.
Diffstat (limited to 'components/layout/flow_ref.rs')
-rw-r--r-- | components/layout/flow_ref.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/flow_ref.rs b/components/layout/flow_ref.rs index 67f306d4508..5e4d0a37563 100644 --- a/components/layout/flow_ref.rs +++ b/components/layout/flow_ref.rs @@ -12,7 +12,7 @@ use flow; use std::mem; use std::ptr; use std::raw; -use std::sync::atomic::SeqCst; +use std::sync::atomic::Ordering; #[unsafe_no_drop_flag] pub struct FlowRef { @@ -55,7 +55,7 @@ impl Drop for FlowRef { if self.object.vtable.is_null() { return } - if flow::base(&**self).ref_count().fetch_sub(1, SeqCst) > 1 { + if flow::base(&**self).ref_count().fetch_sub(1, Ordering::SeqCst) > 1 { return } let flow_ref: FlowRef = mem::replace(self, FlowRef { @@ -75,7 +75,7 @@ impl Drop for FlowRef { impl Clone for FlowRef { fn clone(&self) -> FlowRef { unsafe { - drop(flow::base(self.deref()).ref_count().fetch_add(1, SeqCst)); + drop(flow::base(self.deref()).ref_count().fetch_add(1, Ordering::SeqCst)); FlowRef { object: raw::TraitObject { vtable: self.object.vtable, |