From b987a6df7c11257335f44da215ac5af6d1f3974e Mon Sep 17 00:00:00 2001 From: Collin Chin Date: Tue, 27 Oct 2020 11:14:02 -0700 Subject: [PATCH] Iterate over references instead of cloning in parse_statements Co-authored-by: ljedrz --- dynamic-check/src/objects/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic-check/src/objects/frame.rs b/dynamic-check/src/objects/frame.rs index 6c839088fe..d5b694a830 100644 --- a/dynamic-check/src/objects/frame.rs +++ b/dynamic-check/src/objects/frame.rs @@ -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)?; }