diff --git a/src/lib.rs b/src/lib.rs index f4a76ef..887f1bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,8 @@ #![crate_name = "geom"] #![crate_type = "rlib"] -#![feature(asm, simd, old_impl_check)] +#![feature(asm, simd)] +#![allow(unstable)] #[macro_use] extern crate log; diff --git a/src/rect.rs b/src/rect.rs index e4ea9bc..b16d1f5 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -123,10 +123,10 @@ impl + Sub> Rect } } -#[old_impl_check] -impl> Rect { +impl Rect { #[inline] - pub fn scale(&self, x: Scale, y: Scale) -> Rect { + pub fn scale(&self, x: Scale, y: Scale) -> Rect + where T: Copy + Clone + Mul { Rect { origin: Point2D { x: self.origin.x * x, y: self.origin.y * y}, size: Size2D { width: self.size.width * x, height: self.size.height * y}