From 888dd6b18ee4c129f3e2291fb1e0c3fb56b7db0d Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 15 Dec 2014 13:49:57 +0100 Subject: [PATCH] Update for rustc --- src/quaternion.rs | 2 +- src/transform.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quaternion.rs b/src/quaternion.rs index 45e7a96..b1ed288 100644 --- a/src/quaternion.rs +++ b/src/quaternion.rs @@ -417,7 +417,7 @@ impl Rotation, Point3> for Quaternion Rotation3 for Quaternion { +impl Rotation3 for Quaternion where S: 'static { #[inline] fn from_axis_angle(axis: &Vector3, angle: Rad) -> Quaternion { let (s, c) = sin_cos(angle.mul_s(cast(0.5f64).unwrap())); diff --git a/src/transform.rs b/src/transform.rs index f83397b..ea29f70 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -149,7 +149,7 @@ impl> ToMatrix4 for Decomposed> Transform3 for Decomposed,R> {} +impl> Transform3 for Decomposed,R> where S: 'static {} impl> fmt::Show for Decomposed,R> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -200,4 +200,4 @@ impl ToMatrix4 for AffineMatrix3 { #[inline] fn to_matrix4(&self) -> Matrix4 { self.mat.clone() } } -impl Transform3 for AffineMatrix3 {} +impl Transform3 for AffineMatrix3 where S: 'static {}