From 61f7dbe0752182f0b43e8835f17f44ae7397b087 Mon Sep 17 00:00:00 2001 From: Natasha England-Elbro Date: Mon, 5 Feb 2024 11:37:17 +0000 Subject: [PATCH] fix: matrix4 implementing Eq --- citro3d/src/math/matrix.rs | 6 ------ citro3d/src/math/ops.rs | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/citro3d/src/math/matrix.rs b/citro3d/src/math/matrix.rs index b498f66..aac8612 100644 --- a/citro3d/src/math/matrix.rs +++ b/citro3d/src/math/matrix.rs @@ -183,12 +183,6 @@ impl core::fmt::Debug for Matrix4 { f.debug_tuple("Matrix4").field(&self.rows_wzyx()).finish() } } -impl PartialEq for Matrix4 { - fn eq(&self, other: &Matrix4) -> bool { - self.rows_wzyx() == other.rows_wzyx() - } -} -impl Eq for Matrix4 {} #[cfg(feature = "glam")] impl From for Matrix4 { diff --git a/citro3d/src/math/ops.rs b/citro3d/src/math/ops.rs index ce962fc..3807a08 100644 --- a/citro3d/src/math/ops.rs +++ b/citro3d/src/math/ops.rs @@ -190,6 +190,12 @@ impl Mul for &Matrix4 { } } +impl PartialEq for Matrix4 { + fn eq(&self, other: &Matrix4) -> bool { + self.rows_wzyx() == other.rows_wzyx() + } +} + // endregion #[cfg(feature = "approx")]