From 480c79d1ab2c4f5142243446c065f2afe817fc57 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Thu, 8 Jun 2017 18:09:44 +0200 Subject: [PATCH 1/2] Make euclid build with rustc 1.15. --- Cargo.toml | 2 +- src/rect.rs | 2 +- src/vector.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 536ef14..0bbd7c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.14.3" +version = "0.14.4" authors = ["The Servo Project Developers"] description = "Geometry primitives" documentation = "https://docs.rs/euclid/" diff --git a/src/rect.rs b/src/rect.rs index d1c2e74..4e9592b 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -69,7 +69,7 @@ impl Clone for TypedRect { fn clone(&self) -> Self { *self } } -impl PartialEq for TypedRect { +impl PartialEq> for TypedRect { fn eq(&self, other: &Self) -> bool { self.origin.eq(&other.origin) && self.size.eq(&other.size) } diff --git a/src/vector.rs b/src/vector.rs index 03629ac..141306b 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -179,7 +179,7 @@ impl, U> AddAssign for TypedVector2D { } } -impl, U> SubAssign for TypedVector2D { +impl, U> SubAssign> for TypedVector2D { #[inline] fn sub_assign(&mut self, other: Self) { *self = *self - other @@ -349,7 +349,7 @@ impl TypedVector2D { } } -impl, U> ApproxEq for TypedVector2D { +impl, U> ApproxEq> for TypedVector2D { #[inline] fn approx_epsilon() -> Self { vec2(T::approx_epsilon(), T::approx_epsilon()) @@ -551,7 +551,7 @@ impl, U> AddAssign for TypedVector3D { } } -impl, U> SubAssign for TypedVector3D { +impl, U> SubAssign> for TypedVector3D { #[inline] fn sub_assign(&mut self, other: Self) { *self = *self - other @@ -696,7 +696,7 @@ impl TypedVector3D { } } -impl, U> ApproxEq for TypedVector3D { +impl, U> ApproxEq> for TypedVector3D { #[inline] fn approx_epsilon() -> Self { vec3(T::approx_epsilon(), T::approx_epsilon(), T::approx_epsilon()) From 91e1b3d2cde82ecaac923cff8b97d44c5d1d9c9f Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Thu, 8 Jun 2017 18:15:38 +0200 Subject: [PATCH 2/2] Test with more compiler versions. --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index a121417..7a35ce5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,9 @@ language: rust +rust: + - 1.15.1 + - stable + - beta + - nightly notifications: webhooks: http://build.servo.org:54856/travis