Iterate over references instead of cloning in parse_statements

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
Collin Chin 2020-10-27 11:14:02 -07:00 committed by GitHub
parent 2288510fec
commit b987a6df7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)?;
}