Fix to_str purity

This commit is contained in:
Brendan Zabarauskas 2012-10-18 15:40:36 +10:00
parent 7b0b955ef5
commit 0cef6b55b8
2 changed files with 4 additions and 4 deletions

View file

@ -212,7 +212,7 @@ pub impl Quat: FuzzyEq {
// Convert To String
//
pub impl Quat: ToStr {
fn to_str() -> ~str {
pure fn to_str() -> ~str {
fmt!("Quat[ %f, %f, %f, %f ]", self.w(), self.x(), self.y(), self.z())
}
}

View file

@ -250,7 +250,7 @@ pub impl Vec2: FuzzyEq {
}
pub impl Vec2: ToStr {
fn to_str() -> ~str {
pure fn to_str() -> ~str {
fmt!("Vec2[ %f, %f ]", self[0], self[1])
}
}
@ -445,7 +445,7 @@ pub impl Vec3: FuzzyEq {
}
pub impl Vec3: ToStr {
fn to_str() -> ~str {
pure fn to_str() -> ~str {
fmt!("Vec3[ %f, %f, %f ]", self[0], self[1], self[2])
}
}
@ -649,7 +649,7 @@ pub impl Vec4: FuzzyEq {
}
pub impl Vec4: ToStr {
fn to_str() -> ~str {
pure fn to_str() -> ~str {
fmt!("Vec4[ %f, %f, %f, %f ]", self[0], self[1], self[2], self[3])
}
}