forked from M-Labs/nalgebra
update to latest rust
This commit is contained in:
parent
a1fdec3b52
commit
f8ac86effc
@ -236,7 +236,7 @@ macro_rules! col_slice_impl(
|
|||||||
let res = DVec::from_vec(
|
let res = DVec::from_vec(
|
||||||
rend - rstart,
|
rend - rstart,
|
||||||
unsafe {
|
unsafe {
|
||||||
cast::transmute::<&$tv<N>, & [N, ..$dim]>
|
mem::transmute::<&$tv<N>, & [N, ..$dim]>
|
||||||
(&col).slice(rstart, rend)
|
(&col).slice(rstart, rend)
|
||||||
});
|
});
|
||||||
res
|
res
|
||||||
@ -285,7 +285,7 @@ macro_rules! row_slice_impl(
|
|||||||
let res = DVec::from_vec(
|
let res = DVec::from_vec(
|
||||||
cend - cstart,
|
cend - cstart,
|
||||||
unsafe {
|
unsafe {
|
||||||
cast::transmute::<&$tv<N>, & [N, ..$dim]>
|
mem::transmute::<&$tv<N>, & [N, ..$dim]>
|
||||||
(&row).slice(cstart, cend)
|
(&row).slice(cstart, cend)
|
||||||
});
|
});
|
||||||
res
|
res
|
||||||
|
Loading…
Reference in New Issue
Block a user