Skip to content

Commit

Permalink
impl eq as PartialEq
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole authored and Nicole committed Oct 23, 2024
1 parent 4436e28 commit 835a565
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions math/src/circle/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ impl<F: IsField + HasCircleParams<F>> CirclePoint<F> {
}
}

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,
Expand All @@ -141,7 +137,7 @@ impl<F: IsField + HasCircleParams<F>> CirclePoint<F> {

impl<F: IsField + HasCircleParams<F>> PartialEq for CirclePoint<F> {
fn eq(&self, other: &Self) -> bool {
CirclePoint::eq(self.clone(), other.clone())
self.x == other.x && self.y == other.y
}
}

Expand Down

0 comments on commit 835a565

Please sign in to comment.