Fix some warnings in layout.

This commit is contained in:
Ms2ger 2015-02-12 18:58:38 +01:00
parent 31f6595981
commit 2b0eb98c1d
7 changed files with 28 additions and 17 deletions

View file

@ -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())
}
}