Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Sep 26, 2023
1 parent e8ec821 commit d388e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/ast/src/passes/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d388e73

Please sign in to comment.