rust/land2d/src/lib.rs
changeset 14165 c24a76f131d6
parent 14155 6205a5230d23
child 14175 a4c1a2d0ac24
--- 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]