aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-08-11 16:24:21 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-08-15 14:10:44 +0200
commitb5a4b8d6a09a71bd3a4ff4ae68e7a9639f9dcaad (patch)
tree6f19f8562d57258c06ee21ee2bdbd85f9ae2cb64 /components/layout/inline.rs
parent41fb10c58995781d595a233afae0758427ad5cc5 (diff)
downloadservo-b5a4b8d6a09a71bd3a4ff4ae68e7a9639f9dcaad.tar.gz
servo-b5a4b8d6a09a71bd3a4ff4ae68e7a9639f9dcaad.zip
Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)
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 c78f93fc318..663d8509516 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -435,7 +435,7 @@ impl LineBreaker {
return
}
let last_fragment_index = self.pending_line.range.end() - FragmentIndex(1);
- let mut fragment = &mut self.new_fragments[last_fragment_index.get() as usize];
+ let fragment = &mut self.new_fragments[last_fragment_index.get() as usize];
let old_fragment_inline_size = fragment.border_box.size.inline;
@@ -1047,7 +1047,7 @@ impl InlineFlow {
let space_per_expansion_opportunity = slack_inline_size / expansion_opportunities as i32;
for fragment_index in line.range.each_index() {
let fragment = fragments.get_mut(fragment_index.to_usize());
- let mut scanned_text_fragment_info = match fragment.specific {
+ let scanned_text_fragment_info = match fragment.specific {
SpecificFragmentInfo::ScannedText(ref mut info) if !info.range.is_empty() => info,
_ => continue
};