update to compile on nightly

This commit is contained in:
Martti Rannanjärvi 2014-11-20 17:15:07 +02:00
parent ce4ec62798
commit 3ecf2eb5dd
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ impl BaseInt for u64 {}
impl BaseInt for uint {}
/// Base floating point types
pub trait BaseFloat : BaseNum + FloatMath + ApproxEq<Self> + fmt::Float {}
pub trait BaseFloat : BaseNum + FloatMath + ApproxEq<Self> {}
impl BaseFloat for f32 {}
impl BaseFloat for f64 {}

View file

@ -132,7 +132,7 @@ ApproxEq<S> for Plane<S> {
impl<S: BaseFloat> fmt::Show for Plane<S> {
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)
}
}