From 164ff5b1b2c474ed48b96112c3ecb198ddd6cfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 25 Jul 2013 14:50:55 +0200 Subject: [PATCH] Add missing type bounds. --- src/vec0_spec.rs | 2 +- src/vec_macros.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vec0_spec.rs b/src/vec0_spec.rs index b576b729..dd88410a 100644 --- a/src/vec0_spec.rs +++ b/src/vec0_spec.rs @@ -143,7 +143,7 @@ impl Dot for vec::Vec0 { Zero::zero() } } -impl SubDot for vec::Vec0 +impl SubDot for vec::Vec0 { #[inline] fn sub_dot(&self, _: &vec::Vec0, _: &vec::Vec0) -> N diff --git a/src/vec_macros.rs b/src/vec_macros.rs index 8ec7712b..de3f904d 100644 --- a/src/vec_macros.rs +++ b/src/vec_macros.rs @@ -180,7 +180,7 @@ macro_rules! basis_impl( macro_rules! add_impl( ($t: ident, $comp0: ident $(,$compN: ident)*) => ( - impl> Add<$t, $t> for $t + impl> Add<$t, $t> for $t { #[inline] fn add(&self, other: &$t) -> $t @@ -191,7 +191,7 @@ macro_rules! add_impl( macro_rules! sub_impl( ($t: ident, $comp0: ident $(,$compN: ident)*) => ( - impl> Sub<$t, $t> for $t + impl> Sub<$t, $t> for $t { #[inline] fn sub(&self, other: &$t) -> $t @@ -224,7 +224,7 @@ macro_rules! dot_impl( macro_rules! sub_dot_impl( ($t: ident, $comp0: ident $(,$compN: ident)*) => ( - impl SubDot for $t + impl SubDot for $t { #[inline] fn sub_dot(&self, a: &$t, b: &$t) -> N