aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-12 18:58:38 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-12 18:58:38 +0100
commit2b0eb98c1d0889d7966b2341528417cb3f916911 (patch)
tree337f4305f1a2012ac205b065c4908272e6d21a7a /components/layout/flow.rs
parent31f65959818751ab0dadc18acb5a90357067c9a4 (diff)
downloadservo-2b0eb98c1d0889d7966b2341528417cb3f916911.tar.gz
servo-2b0eb98c1d0889d7966b2341528417cb3f916911.zip
Fix some warnings in layout.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index 3febac7b9b3..7b82f1d3fd9 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -638,16 +638,16 @@ impl Descendants {
/// Return an iterator over the descendant flows.
pub fn iter<'a>(&'a mut self) -> DescendantIter<'a> {
DescendantIter {
- iter: self.descendant_links.slice_from_mut(0).iter_mut(),
+ iter: self.descendant_links.iter_mut(),
}
}
/// Return an iterator over (descendant, static y offset).
pub fn iter_with_offset<'a>(&'a mut self) -> DescendantOffsetIter<'a> {
let descendant_iter = DescendantIter {
- iter: self.descendant_links.slice_from_mut(0).iter_mut(),
+ iter: self.descendant_links.iter_mut(),
};
- descendant_iter.zip(self.static_block_offsets.slice_from_mut(0).iter_mut())
+ descendant_iter.zip(self.static_block_offsets.iter_mut())
}
}