Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed Jun 7, 2024
1 parent 7e3c5e3 commit cf4de8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compiler/cst/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,9 @@ fn parse_atom_function_into(node: &AstNode, buf: &mut Vec<CstAtom>) -> Result<()
fn parse_atom_fn_params(node: &AstNode) -> Result<Vec<CstActualParameter>, CstParserError> {
guard_node_type(node, AstNodeType::AtomFnParams)?;

let mut param_counter = 0;
let mut buf = Vec::new();

for child in &node.children {
for (param_counter, child) in node.children.iter().enumerate() {
guard_node_type(child, AstNodeType::AtomFnParam)?;
let mut value = Vec::new();

Expand All @@ -246,7 +245,6 @@ fn parse_atom_fn_params(node: &AstNode) -> Result<Vec<CstActualParameter>, CstPa
name: param_counter.to_string(),
value,
});
param_counter += 1;
}

Ok(buf)
Expand Down

0 comments on commit cf4de8d

Please sign in to comment.