diff -r 0aeea29ef890 -r c24a76f131d6 rust/land2d/src/lib.rs --- a/rust/land2d/src/lib.rs Wed Nov 07 19:43:17 2018 +0100 +++ b/rust/land2d/src/lib.rs Wed Nov 07 22:01:47 2018 +0300 @@ -30,7 +30,7 @@ } pub fn raw_pixels(&self) -> &[T] { - &self.pixels.raw_data() + &self.pixels.as_slice() } #[inline]