From b26a99465990335cd56a0cbc32b35d4184925855 Mon Sep 17 00:00:00 2001 From: Tinco Andringa Date: Sat, 9 May 2015 16:23:53 +0200 Subject: [PATCH] This reference should not be mut --- src/structs/mat_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index b7f048a9..5f268004 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -292,7 +292,7 @@ macro_rules! index_impl( fn index(&self, (i, j): (usize, usize)) -> &N { unsafe { - &mem::transmute::<&$t, &mut [N; $dim * $dim]>(self)[i + j * $dim] + &mem::transmute::<&$t, & [N; $dim * $dim]>(self)[i + j * $dim] } } }