mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
clippy: fix needless_range_loop
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
08afb0e604
commit
fe016dc168
@ -63,8 +63,8 @@ impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
|
||||
let implicit_types = types.is_empty();
|
||||
let mut expected_types = vec![];
|
||||
|
||||
for i in 0..expressions.len() {
|
||||
let expected_type = if implicit_types { None } else { Some(types[i].clone()) };
|
||||
for ty in types.iter().take(expressions.len()) {
|
||||
let expected_type = if implicit_types { None } else { Some(ty.clone()) };
|
||||
|
||||
expected_types.push(expected_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user