aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.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/construct.rs
parent524966e3af8fbc871005cef460dc86c379a36034 (diff)
downloadservo-faefb27f3e8daed229bc8f15956e314fc01e31d9.tar.gz
servo-faefb27f3e8daed229bc8f15956e314fc01e31d9.zip
Use std::sync::atomic::Ordering explicitly.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 742fb2ebb3e..a13d815984d 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -53,7 +53,7 @@ use servo_util::opts;
use std::borrow::ToOwned;
use std::collections::DList;
use std::mem;
-use std::sync::atomic::Relaxed;
+use std::sync::atomic::Ordering;
use style::computed_values::{caption_side, display, empty_cells, float, list_style_position};
use style::computed_values::{position};
use style::{mod, ComputedValues};
@@ -1385,7 +1385,7 @@ impl FlowConstructionUtils for FlowRef {
}
base.children.push_back(new_child);
- let _ = base.parallel.children_count.fetch_add(1, Relaxed);
+ let _ = base.parallel.children_count.fetch_add(1, Ordering::Relaxed);
}
/// Finishes a flow. Once a flow is finished, no more child flows or fragments may be added to