From 7f9e2b9dfb10abf4061541e058751be4bb4f8e01 Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Mon, 9 Dec 2024 18:23:05 -0300 Subject: [PATCH] fix --- src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.rs b/src/codegen.rs index 6834a07..6a7d642 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -70,7 +70,7 @@ fn compile_statement<'ctx: 'parent, 'parent>( compile_if(ctx, locals, block, if_stmt); } Statement::Return(return_stmt) => { - compile_return(ctx, locals, &block, return_stmt); + compile_return(ctx, locals, block, return_stmt); } } }