Use == instead of default_eq

This commit is contained in:
Brendan Zabarauskas 2012-11-29 21:30:40 +10:00
parent 126c5f4501
commit 2e1e6ca0a0

View file

@ -262,10 +262,13 @@ pub impl<T:Copy> Quat<T>: Index<uint, T> {
} }
} }
pub impl<T:Copy DefaultEq> Quat<T>: Eq { pub impl<T:Copy Eq> Quat<T>: Eq {
#[inline(always)] #[inline(always)]
pure fn eq(&self, other: &Quat<T>) -> bool { pure fn eq(&self, other: &Quat<T>) -> bool {
self.default_eq(other) self[0] == other[0] &&
self[1] == other[1] &&
self[2] == other[2] &&
self[3] == other[3]
} }
#[inline(always)] #[inline(always)]