changeset 14350 | 31717e1436cd |
parent 14207 | bb2f301d4fe0 |
child 14702 | 29dbe9ce8b7d |
--- a/rust/vec2d/src/lib.rs Fri Nov 30 17:09:08 2018 +0100 +++ b/rust/vec2d/src/lib.rs Fri Nov 30 22:37:29 2018 +0300 @@ -87,13 +87,13 @@ #[inline] pub fn rows(&self) -> impl DoubleEndedIterator<Item = &[T]> { - self.data.chunks(self.width()) + self.data.chunks_exact(self.width()) } #[inline] pub fn rows_mut(&mut self) -> impl DoubleEndedIterator<Item = &mut [T]> { let width = self.width(); - self.data.chunks_mut(width) + self.data.chunks_exact_mut(width) } }