diff --git a/math/src/circle/point.rs b/math/src/circle/point.rs index 5ac47fbac..0f1db689e 100644 --- a/math/src/circle/point.rs +++ b/math/src/circle/point.rs @@ -121,10 +121,6 @@ impl> CirclePoint { } } - pub fn eq(a: Self, b: Self) -> bool { - a.x == b.x && a.y == b.y - } - pub const GENERATOR: Self = Self { x: F::CIRCLE_GENERATOR_X, y: F::CIRCLE_GENERATOR_Y, @@ -141,7 +137,7 @@ impl> CirclePoint { impl> PartialEq for CirclePoint { fn eq(&self, other: &Self) -> bool { - CirclePoint::eq(self.clone(), other.clone()) + self.x == other.x && self.y == other.y } }