diff --git a/src/compiler.rs b/src/compiler.rs index 358d62b..dbf3737 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -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(); diff --git a/src/parser.rs b/src/parser.rs index 808210d..0db8610 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -148,7 +148,6 @@ fn factor(input: Span) -> IResult { span: input, }, )) - } fn func_call(i: Span) -> IResult {