From e056f7d43ef064dcf8a4738a525ae7629cef5c97 Mon Sep 17 00:00:00 2001 From: kvark Date: Fri, 27 Sep 2013 06:22:33 -0400 Subject: [PATCH] Ported to Rust-0.8 --- src/cgmath/point.rs | 4 ++-- src/cgmath/vector.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 {