mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
clippy
This commit is contained in:
parent
91795af973
commit
29711ff041
@ -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,
|
||||
|
@ -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()
|
||||
|
@ -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),
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user