diff --git a/src/matrix.rs b/src/matrix.rs index d44cb3a..6be723f 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -541,8 +541,6 @@ impl Index for Matrix2 { } impl IndexMut for Matrix2 { - type Output = Vector2; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector2 { FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i]) @@ -625,8 +623,6 @@ impl Index for Matrix3 { } impl IndexMut for Matrix3 { - type Output = Vector3; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector3 { FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i]) @@ -714,8 +710,6 @@ impl Index for Matrix4 { } impl IndexMut for Matrix4 { - type Output = Vector4; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut Vector4 { FixedArray::from_fixed_mut(&mut self.as_mut_fixed()[*i]) diff --git a/src/point.rs b/src/point.rs index 9782a36..c5c2485 100644 --- a/src/point.rs +++ b/src/point.rs @@ -144,7 +144,6 @@ impl Index for Point2 { } impl IndexMut for Point2 { - type Output = S; #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S { &mut self.as_mut_fixed()[*i] @@ -301,8 +300,6 @@ impl Index for Point3 { } impl IndexMut for Point3 { - type Output = S; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S { &mut self.as_mut_fixed()[*i] diff --git a/src/quaternion.rs b/src/quaternion.rs index 6a2cd2e..16420f7 100644 --- a/src/quaternion.rs +++ b/src/quaternion.rs @@ -61,8 +61,6 @@ impl Index for Quaternion { } impl IndexMut for Quaternion { - type Output = S; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut S { let slice: &'a mut [S; 4] = unsafe { mem::transmute(self) }; @@ -363,7 +361,7 @@ impl ToMatrix4 for Quaternion { impl Neg for Quaternion { type Output = Quaternion; - + #[inline] fn neg(self) -> Quaternion { Quaternion::from_sv(-self.s, -self.v) diff --git a/src/vector.rs b/src/vector.rs index 29a43d8..b2b5ac8 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -267,8 +267,6 @@ macro_rules! vec( } impl<$S: Copy> IndexMut for $Self<$S> { - type Output = S; - #[inline] fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut $S { &mut self.as_mut_fixed()[*i]