mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-02 12:22:08 +03:00
Iterate over references instead of cloning in parse_statements
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
2288510fec
commit
b987a6df7c
@ -228,7 +228,7 @@ impl Frame {
|
||||
/// Collects a vector of `TypeAssertion` predicates from a vector of statements.
|
||||
///
|
||||
fn parse_statements(&mut self) -> Result<(), FrameError> {
|
||||
for statement in self.statements.clone() {
|
||||
for statement in &self.statements {
|
||||
self.parse_statement(&statement)?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user