diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/gfx/display_list.rs | 4 | ||||
-rw-r--r-- | src/components/main/layout/flow.rs | 2 | ||||
-rw-r--r-- | src/components/main/layout/inline.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/components/gfx/display_list.rs b/src/components/gfx/display_list.rs index 89d847938eb..922179c9aca 100644 --- a/src/components/gfx/display_list.rs +++ b/src/components/gfx/display_list.rs @@ -96,7 +96,7 @@ impl StackingContext { /// Creates a stacking context from a display list. fn new(list: DisplayList) -> StackingContext { let DisplayList { - list: mut list + list: list } = list; let mut stacking_context = StackingContext { @@ -160,7 +160,7 @@ impl StackingContext { block_backgrounds_and_borders, floats, content, - positioned_descendants: mut positioned_descendants + positioned_descendants: positioned_descendants } = other; let push = |destination: &mut DisplayList, source: DisplayList, level| { diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs index 6be1e43adc6..bfedef8c1a8 100644 --- a/src/components/main/layout/flow.rs +++ b/src/components/main/layout/flow.rs @@ -581,7 +581,7 @@ impl Descendants { /// Push the given descendants on to the existing descendants. /// /// Ignore any static y offsets, because they are None before layout. - pub fn push_descendants(&mut self, mut given_descendants: Descendants) { + pub fn push_descendants(&mut self, given_descendants: Descendants) { for elem in given_descendants.descendant_links.move_iter() { self.descendant_links.push(elem); } diff --git a/src/components/main/layout/inline.rs b/src/components/main/layout/inline.rs index ec79256f1e5..ebdadfd95d9 100644 --- a/src/components/main/layout/inline.rs +++ b/src/components/main/layout/inline.rs @@ -1057,7 +1057,7 @@ impl FragmentMap { /// necessary. fn push_all(&mut self, other: FragmentMap, adjustment: uint) { let FragmentMap { - list: mut other_list + list: other_list } = other; for other_range in other_list.move_iter() { @@ -1097,7 +1097,7 @@ impl FragmentMap { /// needlessly has to clone boxes. pub fn fixup(&mut self, old_fragments: &[Box], new_fragments: &[Box]) { // TODO(pcwalton): Post Rust upgrade, use `with_capacity` here. - let mut old_list = mem::replace(&mut self.list, Vec::new()); + let old_list = mem::replace(&mut self.list, Vec::new()); let mut worklist = Vec::new(); // FIXME(#2269, pcwalton): was smallvec4 let mut old_list_iter = old_list.move_iter().peekable(); let mut new_fragments_iter = new_fragments.iter().enumerate().peekable(); |