Skip to content

Commit 22a2594

Browse files
committed
fix: removed unneccessary projectiverefs
1 parent 6def629 commit 22a2594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ec/src/models/double_odd/group.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ impl<P: DOCurveConfig, T: Borrow<P::ScalarField>> Mul<T> for Projective<P> {
371371

372372
impl<P: DOCurveConfig> From<Affine<P>> for Projective<P> {
373373
#[inline]
374-
fn from(p: Affine<P>) -> Projective<P> {
374+
fn from(p: Affine<P>) -> Self {
375375
let u = p.u;
376376
let e = p.e;
377377
let z = P::BaseField::ONE;
@@ -456,6 +456,6 @@ impl<P: DOCurveConfig> VariableBaseMSM for Projective<P> {
456456

457457
impl<P: DOCurveConfig, T: Borrow<Affine<P>>> core::iter::Sum<T> for Projective<P> {
458458
fn sum<I: Iterator<Item = T>>(iter: I) -> Self {
459-
iter.fold(Projective::zero(), |sum, x| sum + x.borrow())
459+
iter.fold(Self::zero(), |sum, x| sum + x.borrow())
460460
}
461461
}

0 commit comments

Comments
 (0)