diff options
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index bbfb698a2f3..8c7588f0666 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -56,7 +56,7 @@ use std::mem; use std::fmt; use std::iter::Zip; use std::raw; -use std::sync::atomic::{AtomicUint, SeqCst}; +use std::sync::atomic::{AtomicUint, Ordering}; use std::slice::MutItems; use style::computed_values::{clear, empty_cells, float, position, text_align}; use style::ComputedValues; @@ -781,7 +781,7 @@ impl fmt::Show for BaseFlow { write!(f, "@ {}, CC {}, ADC {}", self.position, - self.parallel.children_count.load(SeqCst), + self.parallel.children_count.load(Ordering::SeqCst), self.abs_descendants.len()) } } @@ -830,7 +830,7 @@ impl<E, S: Encoder<E>> Encodable<S, E> for BaseFlow { #[unsafe_destructor] impl Drop for BaseFlow { fn drop(&mut self) { - if self.ref_count.load(SeqCst) != 0 { + if self.ref_count.load(Ordering::SeqCst) != 0 { panic!("Flow destroyed before its ref count hit zero—this is unsafe!") } } |