From 6b71de46652dce9cd6259505b384ee0618999112 Mon Sep 17 00:00:00 2001 From: Peter Atashian Date: Sun, 8 Feb 2015 02:28:57 -0500 Subject: [PATCH] Update rust Signed-off-by: Peter Atashian --- src/structs/dmat.rs | 2 -- src/structs/dvec_macros.rs | 2 -- src/structs/mat_macros.rs | 2 -- src/structs/spec/vec0.rs | 2 -- src/structs/vec_macros.rs | 2 -- 5 files changed, 10 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 4a3d2880..1e7d2551 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -278,8 +278,6 @@ impl Index<(usize, usize)> for DMat { } impl IndexMut<(usize, usize)> for DMat { - type Output = N; - fn index_mut(&mut self, &(i, j): &(usize, usize)) -> &mut N { assert!(i < self.nrows); assert!(j < self.ncols); diff --git a/src/structs/dvec_macros.rs b/src/structs/dvec_macros.rs index 1660e132..27aa357c 100644 --- a/src/structs/dvec_macros.rs +++ b/src/structs/dvec_macros.rs @@ -86,8 +86,6 @@ macro_rules! dvec_impl( } impl IndexMut for $dvec { - type Output = N; - fn index_mut(&mut self, i: &usize) -> &mut N { &mut self.as_mut_slice()[*i] } diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index 4a9d5f49..3f36e4dd 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -312,8 +312,6 @@ macro_rules! index_impl( } impl IndexMut<(usize, usize)> for $t { - type Output = N; - fn index_mut(&mut self, &(i, j): &(usize, usize)) -> &mut N { unsafe { &mut mem::transmute::<&mut $t, &mut [N; $dim * $dim]>(self)[i + j * $dim] diff --git a/src/structs/spec/vec0.rs b/src/structs/spec/vec0.rs index 3ccd3ade..2b51c775 100644 --- a/src/structs/spec/vec0.rs +++ b/src/structs/spec/vec0.rs @@ -30,8 +30,6 @@ impl Index for vec::Vec0 { } impl IndexMut for vec::Vec0 { - type Output = N; - #[inline] fn index_mut(&mut self, _: &usize) -> &mut N { panic!("Canot index a Vec0.") diff --git a/src/structs/vec_macros.rs b/src/structs/vec_macros.rs index f6cbd0d9..c757e746 100644 --- a/src/structs/vec_macros.rs +++ b/src/structs/vec_macros.rs @@ -234,8 +234,6 @@ macro_rules! index_impl( } impl IndexMut for $t { - type Output = N; - fn index_mut(&mut self, i: &usize) -> &mut N { &mut self.as_array_mut()[*i] }