From 9081cb2b2c7eedf23b7ae7b5d22c3aee6ff62b17 Mon Sep 17 00:00:00 2001 From: apantykhin Date: Thu, 28 Feb 2019 06:35:08 +0000 Subject: [PATCH] remove redundant mut --- vm/src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/compile.rs b/vm/src/compile.rs index 6ec3fd6cc4..1fcce93c93 100644 --- a/vm/src/compile.rs +++ b/vm/src/compile.rs @@ -1389,7 +1389,7 @@ impl Compiler { // Low level helper functions: fn emit(&mut self, instruction: Instruction) { let location = self.current_source_location.clone(); - let mut cur_code_obj = self.current_code_object(); + let cur_code_obj = self.current_code_object(); cur_code_obj.instructions.push(instruction); cur_code_obj.locations.push(location); // TODO: insert source filename