servo: Merge #10979 - Fix unused mut warning (from bstrie:mutwarn); r=frewsxcv
authorBen Striegel <ben.striegel@gmail.com>
Tue, 03 May 2016 01:36:08 -0700
changeset 338696 1d4a400f5cc6e896bba4ea51ba509df43a9aecf3
parent 338695 e0e4b673eeead8be1bf21263d3a1fea5030f808b
child 338697 85f13c916591d9bb5f8a10ccba93d38d4457f238
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrewsxcv
servo: Merge #10979 - Fix unused mut warning (from bstrie:mutwarn); r=frewsxcv Source-Repo: https://github.com/servo/servo Source-Revision: 8e2cb95d2504cc1d82347adbf0f8dbbc6fd0c82a
servo/components/layout/block.rs
--- a/servo/components/layout/block.rs
+++ b/servo/components/layout/block.rs
@@ -1472,17 +1472,17 @@ impl BlockFlow {
                                     surrounding_inline_size,
         }
     }
 
     /// Computes intrinsic widths for a block.
     pub fn bubble_inline_sizes_for_block(&mut self, consult_children: bool) {
         let _scope = layout_debug_scope!("block::bubble_inline_sizes {:x}", self.base.debug_id());
 
-        let mut flags = self.base.flags;
+        let flags = self.base.flags;
 
         // Find the maximum inline-size from children.
         let mut computation = self.fragment.compute_intrinsic_inline_sizes();
         let (mut left_float_width, mut right_float_width) = (Au(0), Au(0));
         let (mut left_float_width_accumulator, mut right_float_width_accumulator) = (Au(0), Au(0));
         for kid in self.base.child_iter_mut() {
             let is_absolutely_positioned =
                 flow::base(kid).flags.contains(IS_ABSOLUTELY_POSITIONED);