Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
qalisander committed Nov 1, 2024
1 parent 84eb1b6 commit a49b8e6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/crypto/src/field/fp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,22 +504,22 @@ impl<P: FpParams<LIMBS>, const LIMBS: usize> core::ops::Div<&Fp<P, LIMBS>>
}
}

impl<'b, P: FpParams<LIMBS>, const LIMBS: usize>
core::ops::Add<&'b Fp<P, LIMBS>> for &Fp<P, LIMBS>
impl<P: FpParams<LIMBS>, const LIMBS: usize> core::ops::Add<&Fp<P, LIMBS>>
for &Fp<P, LIMBS>
{
type Output = Fp<P, LIMBS>;

#[inline]
fn add(self, other: &'b Fp<P, LIMBS>) -> Fp<P, LIMBS> {
fn add(self, other: &Fp<P, LIMBS>) -> Fp<P, LIMBS> {
use core::ops::AddAssign;
let mut result = *self;
result.add_assign(other);
result
}
}

impl<'b, P: FpParams<LIMBS>, const LIMBS: usize>
core::ops::Sub<&'b Fp<P, LIMBS>> for &Fp<P, LIMBS>
impl<P: FpParams<LIMBS>, const LIMBS: usize> core::ops::Sub<&Fp<P, LIMBS>>
for &Fp<P, LIMBS>
{
type Output = Fp<P, LIMBS>;

Expand All @@ -532,8 +532,8 @@ impl<'b, P: FpParams<LIMBS>, const LIMBS: usize>
}
}

impl<'b, P: FpParams<LIMBS>, const LIMBS: usize>
core::ops::Mul<&'b Fp<P, LIMBS>> for &Fp<P, LIMBS>
impl<P: FpParams<LIMBS>, const LIMBS: usize> core::ops::Mul<&Fp<P, LIMBS>>
for &Fp<P, LIMBS>
{
type Output = Fp<P, LIMBS>;

Expand Down

0 comments on commit a49b8e6

Please sign in to comment.