We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6def629 commit 22a2594Copy full SHA for 22a2594
ec/src/models/double_odd/group.rs
@@ -371,7 +371,7 @@ impl<P: DOCurveConfig, T: Borrow<P::ScalarField>> Mul<T> for Projective<P> {
371
372
impl<P: DOCurveConfig> From<Affine<P>> for Projective<P> {
373
#[inline]
374
- fn from(p: Affine<P>) -> Projective<P> {
+ fn from(p: Affine<P>) -> Self {
375
let u = p.u;
376
let e = p.e;
377
let z = P::BaseField::ONE;
@@ -456,6 +456,6 @@ impl<P: DOCurveConfig> VariableBaseMSM for Projective<P> {
456
457
impl<P: DOCurveConfig, T: Borrow<Affine<P>>> core::iter::Sum<T> for Projective<P> {
458
fn sum<I: Iterator<Item = T>>(iter: I) -> Self {
459
- iter.fold(Projective::zero(), |sum, x| sum + x.borrow())
+ iter.fold(Self::zero(), |sum, x| sum + x.borrow())
460
}
461
0 commit comments