This commit is contained in:
Protryon 2021-02-16 13:30:26 -08:00
parent 91795af973
commit 29711ff041
3 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@ impl<'a, F: Field + PrimeField, G: GroupType<F>> Compiler<'a, F, G> {
/// Parses and stores all imported programs.
/// Performs type inference checking on the program, imported programs, and program input.
///
#[allow(clippy::too_many_arguments)]
pub fn parse_program_with_input(
package_name: String,
main_file_path: PathBuf,

View File

@ -29,7 +29,7 @@ use snarkvm_models::{
pub struct Blake2s;
fn unwrap_argument<'a, F: Field + PrimeField, G: GroupType<F>>(arg: ConstrainedValue<'a, F, G>) -> Vec<UInt8> {
fn unwrap_argument<F: Field + PrimeField, G: GroupType<F>>(arg: ConstrainedValue<F, G>) -> Vec<UInt8> {
if let ConstrainedValue::Array(args) = arg {
assert_eq!(args.len(), 32); // asg enforced
args.into_iter()

View File

@ -248,7 +248,7 @@ impl<'a, F: Field + PrimeField, G: GroupType<F>> CondSelectGadget<F> for Constra
)?);
}
ConstrainedValue::CircuitExpression(identifier.clone(), members)
ConstrainedValue::CircuitExpression(*identifier, members)
}
(_, _) => return Err(SynthesisError::Unsatisfiable),
})