From d388e733e9e4def6a372d2f32d62e30b53f51983 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:41:45 -0700 Subject: [PATCH] clippy --- compiler/ast/src/passes/visitor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/ast/src/passes/visitor.rs b/compiler/ast/src/passes/visitor.rs index cd650d0165..da5042c5cc 100644 --- a/compiler/ast/src/passes/visitor.rs +++ b/compiler/ast/src/passes/visitor.rs @@ -210,13 +210,13 @@ pub trait ProgramVisitor<'a>: StatementVisitor<'a> { } fn visit_program_scope(&mut self, input: &'a ProgramScope) { - input.structs.iter().for_each(|(_, c)| (self.visit_struct(&c))); + input.structs.iter().for_each(|(_, c)| (self.visit_struct(c))); - input.mappings.iter().for_each(|(_, c)| (self.visit_mapping(&c))); + input.mappings.iter().for_each(|(_, c)| (self.visit_mapping(c))); - input.functions.iter().for_each(|(_, c)| (self.visit_function(&c))); + input.functions.iter().for_each(|(_, c)| (self.visit_function(c))); - input.consts.iter().for_each(|(_, c)| (self.visit_const(&c))); + input.consts.iter().for_each(|(_, c)| (self.visit_const(c))); } fn visit_import(&mut self, input: &'a Program) {