chore: cargo fmt

This commit is contained in:
Georgios Konstantopoulos 2021-08-11 23:46:07 +03:00
parent 29de734540
commit 293314f2ef
1 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,7 @@ impl<E: PairingEngine> CircomBuilder<E> {
.wtns
.calculate_witness(self.inputs, self.cfg.sanity_check)?;
use ark_ff::{PrimeField, FpParameters};
use ark_ff::{FpParameters, PrimeField};
let modulus = <<E::Fr as PrimeField>::Params as FpParameters>::MODULUS;
// convert it to field elements
@ -92,7 +92,8 @@ impl<E: PairingEngine> CircomBuilder<E> {
w.to_biguint().unwrap()
};
E::Fr::from(w)
}).collect::<Vec<_>>();
})
.collect::<Vec<_>>();
circom.witness = Some(witness);
// sanity check