This reference should not be mut

This commit is contained in:
Tinco Andringa 2015-05-09 16:23:53 +02:00
parent 0b1969d4d5
commit b26a994659
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ macro_rules! index_impl(
fn index(&self, (i, j): (usize, usize)) -> &N {
unsafe {
&mem::transmute::<&$t<N>, &mut [N; $dim * $dim]>(self)[i + j * $dim]
&mem::transmute::<&$t<N>, & [N; $dim * $dim]>(self)[i + j * $dim]
}
}
}