diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index b3fb0513..e574a770 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -236,7 +236,7 @@ macro_rules! col_slice_impl( let res = DVec::from_vec( rend - rstart, unsafe { - cast::transmute::<&$tv, & [N, ..$dim]> + mem::transmute::<&$tv, & [N, ..$dim]> (&col).slice(rstart, rend) }); res @@ -285,7 +285,7 @@ macro_rules! row_slice_impl( let res = DVec::from_vec( cend - cstart, unsafe { - cast::transmute::<&$tv, & [N, ..$dim]> + mem::transmute::<&$tv, & [N, ..$dim]> (&row).slice(cstart, cend) }); res