aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorJoão Oliveira <hello@jxs.pt>2015-08-18 01:36:04 +0100
committerJoão Oliveira <hello@jxs.pt>2015-08-18 01:46:11 +0100
commit067a22a868fb59be92df4f07c5ca54669dc1c229 (patch)
tree6a35298b4b3aa43c9d896f5cb7d63903611fb246 /components/layout/inline.rs
parentf4b526cfb4ea1ef263ff029650c74ff50a74d5db (diff)
downloadservo-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/inline.rs')
-rw-r--r--components/layout/inline.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index 39a000d742e..ecb06a0b8e8 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -1121,7 +1121,7 @@ impl InlineFlow {
let run = Arc::make_unique(&mut scanned_text_fragment_info.run);
{
let glyph_runs = Arc::make_unique(&mut run.glyphs);
- for mut glyph_run in glyph_runs.iter_mut() {
+ for mut glyph_run in &mut *glyph_runs {
let mut range = glyph_run.range.intersect(&fragment_range);
if range.is_empty() {
continue
@@ -1226,7 +1226,7 @@ impl InlineFlow {
for frag in &self.fragments.fragments {
match frag.inline_context {
Some(ref inline_context) => {
- for node in inline_context.nodes.iter() {
+ for node in &inline_context.nodes {
let font_style = node.style.get_font_arc();
let font_metrics = text::font_metrics_for_style(font_context, font_style);
let line_height = text::line_height_from_style(&*node.style, &font_metrics);