mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 12:45:26 +03:00
Prefer iterator over vector in parse_circuits
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
ff03e64314
commit
6931cadd71
@ -69,7 +69,7 @@ impl DynamicCheck {
|
||||
///
|
||||
/// Collects a vector of `Frames`s from a vector of circuit functions.
|
||||
///
|
||||
fn parse_circuits(&mut self, circuits: Vec<&Circuit>) -> Result<(), DynamicCheckError> {
|
||||
fn parse_circuits<'a>(&mut self, circuits: impl Iterator<Item = &'a Circuit>) -> Result<(), DynamicCheckError> {
|
||||
for circuit in circuits {
|
||||
self.parse_circuit(circuit)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user