Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ozdemir committed Jan 21, 2024
1 parent 0e10f9f commit 23efa7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mp/bignat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ impl<E: Engine> BigNat<E> {

pub fn one<CS: ConstraintSystem<E>>(limb_width: usize) -> Self {
BigNat {
limb_values: Some({ vec![E::Fr::one()] }),
limb_values: Some(vec![E::Fr::one()]),
value: Some(Integer::from(1)),
limbs: { vec![LinearCombination::zero() + CS::one()] },
params: BigNatParams {
Expand Down Expand Up @@ -1398,7 +1398,7 @@ impl<E: Engine> Gadget for BigNat<E> {
) -> Result<Self, SynthesisError> {
BigNat::alloc_from_nat(
cs,
|| Ok(value.grab()?.clone().clone()),
|| Ok((*value.grab()?).clone()),
params.limb_width,
params.n_limbs,
)
Expand Down

0 comments on commit 23efa7b

Please sign in to comment.