diff --git a/src/cgmath/vector.rs b/src/cgmath/vector.rs index 1996539..66b40d5 100644 --- a/src/cgmath/vector.rs +++ b/src/cgmath/vector.rs @@ -155,15 +155,9 @@ impl Neg> for Vec2 { #[inline] fn neg(&self) -> Vec2 impl Neg> for Vec3 { #[inline] fn neg(&self) -> Vec3 { build(|i| self.i(i).neg()) } } impl Neg> for Vec4 { #[inline] fn neg(&self) -> Vec4 { build(|i| self.i(i).neg()) } } -macro_rules! vector( - (impl $Self:ident <$S:ident> $Slice:ty { $x:ident, $($xs:ident),+ }) => ( - impl<$S: Primitive> Vector<$S, $Slice> for $Self<$S>; - ) -) - -vector!(impl Vec2 [S, ..2] { x, y }) -vector!(impl Vec3 [S, ..3] { x, y, z }) -vector!(impl Vec4 [S, ..4] { x, y, z, w }) +impl Vector for Vec2; +impl Vector for Vec3; +impl Vector for Vec4; /// Operations specific to numeric two-dimensional vectors. impl Vec2 {