From 3ecf2eb5ddf4456d777e61b9369430b63ba744dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martti=20Rannanj=C3=A4rvi?= Date: Thu, 20 Nov 2014 17:15:07 +0200 Subject: [PATCH] update to compile on nightly --- src/num.rs | 2 +- src/plane.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/num.rs b/src/num.rs index 72cdb16..c10cf67 100644 --- a/src/num.rs +++ b/src/num.rs @@ -88,7 +88,7 @@ impl BaseInt for u64 {} impl BaseInt for uint {} /// Base floating point types -pub trait BaseFloat : BaseNum + FloatMath + ApproxEq + fmt::Float {} +pub trait BaseFloat : BaseNum + FloatMath + ApproxEq {} impl BaseFloat for f32 {} impl BaseFloat for f64 {} diff --git a/src/plane.rs b/src/plane.rs index 1de0153..1b8fb2e 100644 --- a/src/plane.rs +++ b/src/plane.rs @@ -132,7 +132,7 @@ ApproxEq for Plane { impl fmt::Show for Plane { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:f}x + {:f}y + {:f}z - {:f} = 0", + write!(f, "{}x + {}y + {}z - {} = 0", self.n.x, self.n.y, self.n.z, self.d) } }