diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-18 01:36:04 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-18 01:46:11 +0100 |
commit | 067a22a868fb59be92df4f07c5ca54669dc1c229 (patch) | |
tree | 6a35298b4b3aa43c9d896f5cb7d63903611fb246 /components/layout/parallel.rs | |
parent | f4b526cfb4ea1ef263ff029650c74ff50a74d5db (diff) | |
download | servo-067a22a868fb59be92df4f07c5ca54669dc1c229.tar.gz servo-067a22a868fb59be92df4f07c5ca54669dc1c229.zip |
Replace uses of `for foo in bar.iter()`,
and `for foo in bar.iter_mut(), and for foo in bar.into_iter()
(continuation of #7197)
Diffstat (limited to 'components/layout/parallel.rs')
-rw-r--r-- | components/layout/parallel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/parallel.rs b/components/layout/parallel.rs index 60d8c9de306..c936dd00a16 100644 --- a/components/layout/parallel.rs +++ b/components/layout/parallel.rs @@ -114,7 +114,7 @@ pub trait ParallelPreorderDomTraversal : PreorderDomTraversal { top_down_func: ChunkedDomTraversalFunction, bottom_up_func: DomTraversalFunction) { let mut discovered_child_nodes = Vec::new(); - for unsafe_node in unsafe_nodes.0.into_iter() { + for unsafe_node in *unsafe_nodes.0 { // Get a real layout node. let node: LayoutNode = unsafe { layout_node_from_unsafe_layout_node(&unsafe_node) @@ -295,7 +295,7 @@ trait ParallelPreorderFlowTraversal : PreorderFlowTraversal { top_down_func: ChunkedFlowTraversalFunction, bottom_up_func: FlowTraversalFunction) { let mut discovered_child_flows = Vec::new(); - for mut unsafe_flow in unsafe_flows.0.into_iter() { + for mut unsafe_flow in *unsafe_flows.0 { let mut had_children = false; unsafe { // Get a real flow. |