Update euclid to 0.10.1

This commit is contained in:
Anthony Ramine 2016-08-19 17:13:23 +02:00
parent 8a75810eba
commit 51768844ed
37 changed files with 281 additions and 280 deletions

View file

@ -25,7 +25,7 @@ bitflags = "0.7"
cssparser = "0.5.7"
deque = "0.3.1"
encoding = "0.2"
euclid = "0.9"
euclid = "0.10.1"
fnv = "1.0"
gecko_bindings = {path = "../../ports/geckolib/gecko_bindings", optional = true}
gecko_string_cache = {path = "../../ports/geckolib/string_cache", optional = true}

View file

@ -242,7 +242,7 @@ impl Interpolate for ZIndex {
}
}
impl<T: Interpolate + Clone> Interpolate for Size2D<T> {
impl<T: Interpolate + Copy> Interpolate for Size2D<T> {
#[inline]
fn interpolate(&self, other: &Self, time: f64) -> Result<Self, ()> {
let width = try!(self.width.interpolate(&other.width, time));
@ -252,7 +252,7 @@ impl<T: Interpolate + Clone> Interpolate for Size2D<T> {
}
}
impl<T: Interpolate + Clone> Interpolate for Point2D<T> {
impl<T: Interpolate + Copy> Interpolate for Point2D<T> {
#[inline]
fn interpolate(&self, other: &Self, time: f64) -> Result<Self, ()> {
let x = try!(self.x.interpolate(&other.x, time));