diff --git a/src/mat2.rs b/src/mat2.rs index 64d5506..b3c099a 100644 --- a/src/mat2.rs +++ b/src/mat2.rs @@ -210,7 +210,7 @@ pub impl Mat2: MutableMatrix> { match i { 0 => &mut self.x, 1 => &mut self.y, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 1, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 1, but found %u", i)) } } @@ -263,7 +263,7 @@ pub impl Mat2: MutableMatrix> { fn invert_self(&mut self) { match self.inverse() { Some(m) => (*self) = m, - None => fail(~"Couldn't invert the matrix!") + None => fail!(~"Couldn't invert the matrix!") } } diff --git a/src/mat3.rs b/src/mat3.rs index f7cb897..6f0b9ba 100644 --- a/src/mat3.rs +++ b/src/mat3.rs @@ -477,7 +477,7 @@ pub impl Mat3: MutableMatrix> { 0 => &mut self.x, 1 => &mut self.y, 2 => &mut self.z, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 2, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 2, but found %u", i)) } } @@ -534,7 +534,7 @@ pub impl Mat3: MutableMatrix> { fn invert_self(&mut self) { match self.inverse() { Some(m) => (*self) = m, - None => fail(~"Couldn't invert the matrix!") + None => fail!(~"Couldn't invert the matrix!") } } diff --git a/src/mat4.rs b/src/mat4.rs index 1f7b6a3..e587009 100644 --- a/src/mat4.rs +++ b/src/mat4.rs @@ -403,7 +403,7 @@ pub impl Mat4: MutableMatrix> { 1 => &mut self.y, 2 => &mut self.z, 3 => &mut self.w, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 3, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 3, but found %u", i)) } } @@ -464,7 +464,7 @@ pub impl Mat4: MutableMatrix> { fn invert_self(&mut self) { match self.inverse() { Some(m) => (*self) = m, - None => fail(~"Couldn't invert the matrix!") + None => fail!(~"Couldn't invert the matrix!") } } diff --git a/src/quat.rs b/src/quat.rs index dcc5b4e..640bb34 100644 --- a/src/quat.rs +++ b/src/quat.rs @@ -138,7 +138,7 @@ pub impl Quat { } pure fn get_angle_axis(&self) -> (T, Vec3) { - fail(~"Not yet implemented.") + fail!(~"Not yet implemented.") } #[inline(always)] diff --git a/src/test/performance/vector_index_operator.rs b/src/test/performance/vector_index_operator.rs index 2d98bcb..023a671 100644 --- a/src/test/performance/vector_index_operator.rs +++ b/src/test/performance/vector_index_operator.rs @@ -21,7 +21,7 @@ pub impl VecMatch: Index { 1 => self.y, 2 => self.z, 3 => self.w, - _ => fail(~"Vector index out of bounds.") + _ => fail!(~"Vector index out of bounds.") } } } diff --git a/src/vec2.rs b/src/vec2.rs index 5b4c03b..de53dd2 100644 --- a/src/vec2.rs +++ b/src/vec2.rs @@ -78,7 +78,7 @@ pub impl Vec2: MutableVector { match i { 0 => &mut self.x, 1 => &mut self.y, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 1, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 1, but found %u", i)) } } diff --git a/src/vec3.rs b/src/vec3.rs index 7cab425..7caf032 100644 --- a/src/vec3.rs +++ b/src/vec3.rs @@ -81,7 +81,7 @@ pub impl Vec3: MutableVector { 0 => &mut self.x, 1 => &mut self.y, 2 => &mut self.z, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 2, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 2, but found %u", i)) } } diff --git a/src/vec4.rs b/src/vec4.rs index c871825..9670c6c 100644 --- a/src/vec4.rs +++ b/src/vec4.rs @@ -80,7 +80,7 @@ pub impl Vec4: MutableVector { 1 => &mut self.y, 2 => &mut self.z, 3 => &mut self.w, - _ => fail(fmt!("index out of bounds: expected an index from 0 to 3, but found %u", i)) + _ => fail!(fmt!("index out of bounds: expected an index from 0 to 3, but found %u", i)) } }