From f44d2aa540d8e4d4e25bdcac8e5621259710c031 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Thu, 29 Nov 2012 13:49:57 +1000 Subject: [PATCH] Use `==` instead of default_eq --- src/mat.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/mat.rs b/src/mat.rs index 826210d..6e57590 100644 --- a/src/mat.rs +++ b/src/mat.rs @@ -327,7 +327,8 @@ pub impl Mat2: NumericMatrix2x2> { pub impl Mat2: Eq { #[inline(always)] pure fn eq(&self, other: &Mat2) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] } #[inline(always)] @@ -621,7 +622,9 @@ pub impl Mat3: ToQuat { pub impl Mat3: Eq { #[inline(always)] pure fn eq(&self, other: &Mat3) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] && + self[2] == other[2] } #[inline(always)] @@ -965,7 +968,10 @@ pub impl Mat4: NumericMatrix4x4> { pub impl Mat4: Eq { #[inline(always)] pure fn eq(&self, other: &Mat4) -> bool { - self.default_eq(other) + self[0] == other[0] && + self[1] == other[1] && + self[2] == other[2] && + self[3] == other[3] } #[inline(always)]