mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-11 10:52:49 +03:00
Prefer iterator over vector in parse_functions
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
6931cadd71
commit
21c569d950
@ -111,7 +111,7 @@ impl DynamicCheck {
|
||||
///
|
||||
/// Collects a vector of `TypeAssertion` predicates from a vector of functions.
|
||||
///
|
||||
fn parse_functions(&mut self, functions: Vec<&Function>) -> Result<(), DynamicCheckError> {
|
||||
fn parse_functions<'a>(&mut self, functions: impl Iterator<Item = &'a Function>) -> Result<(), DynamicCheckError> {
|
||||
for function in functions {
|
||||
self.parse_function(function)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user