Skip to content

Commit 967709d

Browse files
committed
fmt
1 parent de67fc9 commit 967709d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

spartan_parallel/src/scalar/fp2.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use super::SpartanExtensionField;
2+
use crate::scalar::Scalar;
23
use crate::{AppendToTranscript, ProofTranscript, Transcript};
34
use core::borrow::Borrow;
45
use core::iter::{Product, Sum};
@@ -9,7 +10,6 @@ use rand::{CryptoRng, RngCore};
910
use serde::{Deserialize, Serialize};
1011
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
1112
use zeroize::Zeroize;
12-
use crate::scalar::Scalar;
1313

1414
/// Field wrapper around ext2 Goldilocks
1515
#[derive(Clone, Copy, Eq, Serialize, Deserialize, Hash, Debug)]
@@ -26,28 +26,28 @@ impl Mul<Scalar> for ScalarExt2 {
2626

2727
#[inline]
2828
fn mul(self, rhs: Scalar) -> Self::Output {
29-
(self.inner() * &rhs.inner()).into()
29+
(self.inner() * &rhs.inner()).into()
3030
}
3131
}
3232
impl<'a> Mul<&'a Scalar> for ScalarExt2 {
3333
type Output = Self;
3434

3535
#[inline]
3636
fn mul(mut self, rhs: &'a Scalar) -> Self::Output {
37-
self *= rhs;
38-
self
37+
self *= rhs;
38+
self
3939
}
4040
}
4141
impl MulAssign<&Scalar> for ScalarExt2 {
4242
#[inline]
4343
fn mul_assign(&mut self, rhs: &Scalar) {
44-
self.0 *= rhs.inner();
44+
self.0 *= rhs.inner();
4545
}
4646
}
4747
impl MulAssign<Scalar> for ScalarExt2 {
4848
#[inline]
4949
fn mul_assign(&mut self, rhs: Scalar) {
50-
self.mul_assign(&rhs)
50+
self.mul_assign(&rhs)
5151
}
5252
}
5353
impl SpartanExtensionField for ScalarExt2 {
@@ -69,7 +69,7 @@ impl SpartanExtensionField for ScalarExt2 {
6969
/// Build a self from a base element; pad ext with 0s.
7070
fn from_base(b: &Self::BaseField) -> Self {
7171
GoldilocksExt2::from_base(b.inner()).into()
72-
}
72+
}
7373

7474
fn random<Rng: RngCore + CryptoRng>(rng: &mut Rng) -> Self {
7575
GoldilocksExt2::random(rng).into()

spartan_parallel/src/scalar/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{
1313
cmp::Eq,
1414
hash::Hash,
1515
iter::{Product, Sum},
16-
ops::{Add, Mul, Neg, Sub, MulAssign},
16+
ops::{Add, Mul, MulAssign, Neg, Sub},
1717
};
1818
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
1919
use zeroize::Zeroize;

0 commit comments

Comments
 (0)