diff --git a/src/cgmath/point.rs b/src/cgmath/point.rs index 854201a..91eb9dc 100644 --- a/src/cgmath/point.rs +++ b/src/cgmath/point.rs @@ -85,8 +85,8 @@ pub trait Point array!(impl Point2 -> [S, ..2] _2) array!(impl Point3 -> [S, ..3] _3) -impl Point, [S, ..2]> for Point2; -impl Point, [S, ..3]> for Point3; +impl Point, [S, ..2]> for Point2 {} +impl Point, [S, ..3]> for Point3 {} impl ToStr for Point2 { fn to_str(&self) -> ~str { diff --git a/src/cgmath/vector.rs b/src/cgmath/vector.rs index 5ca18ff..713fb84 100644 --- a/src/cgmath/vector.rs +++ b/src/cgmath/vector.rs @@ -155,9 +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()) } } -impl Vector for Vec2; -impl Vector for Vec3; -impl Vector for Vec4; +impl Vector for Vec2 {} +impl Vector for Vec3 {} +impl Vector for Vec4 {} /// Operations specific to numeric two-dimensional vectors. impl Vec2 {