Skip to content

Commit

Permalink
cargo fmt & cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Aug 9, 2024
1 parent ad11123 commit bb85676
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ impl Compiler {
span: Span::new(""),
};
let init = init.as_ref().unwrap_or(&undef_expr);
let mut init = self.compile_expr(&init)?;
let mut init = self.compile_expr(init)?;
if !matches!(self.target_stack[init.0], Target::Temp) {
self.add_copy_inst(init);
init = self.stack_top();
Expand Down
1 change: 0 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ fn factor(input: Span) -> IResult<Span, Expression> {
span: input,
},
))

}

fn func_call(i: Span) -> IResult<Span, Expression> {
Expand Down

0 comments on commit bb85676

Please sign in to comment.