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/construct.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/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index c9934510424..658a88a0296 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -548,7 +548,7 @@ impl<'a> FlowConstructor<'a> { fragments: successor_fragments, })) => { // Add any {ib} splits. - for split in splits.into_iter() { + for split in splits { // Pull apart the {ib} split object and push its predecessor fragments // onto the list. let InlineBlockSplit { @@ -722,7 +722,7 @@ impl<'a> FlowConstructor<'a> { let mut style = (*style).clone(); properties::modify_style_for_text(&mut style); - for content_item in text_content.into_iter() { + for content_item in text_content { let specific = match content_item { ContentItem::String(string) => { let info = UnscannedTextFragmentInfo::from_text(string); @@ -765,7 +765,7 @@ impl<'a> FlowConstructor<'a> { node: &ThreadSafeLayoutNode, fragment_accumulator: &mut InlineFragmentsAccumulator, opt_inline_block_splits: &mut LinkedList<InlineBlockSplit>) { - for split in splits.into_iter() { + for split in splits { let InlineBlockSplit { predecessors, flow: kid_flow @@ -1038,7 +1038,7 @@ impl<'a> FlowConstructor<'a> { node: &ThreadSafeLayoutNode) { let mut anonymous_flow = flow.generate_missing_child_flow(node); let mut consecutive_siblings = vec!(); - for kid_flow in child_flows.into_iter() { + for kid_flow in child_flows { if anonymous_flow.need_anonymous_flow(&*kid_flow) { consecutive_siblings.push(kid_flow); continue; |