From 85ec817b73dac2bca38b2c8d9c42239cbb2e20af Mon Sep 17 00:00:00 2001 From: HyeockJinKim Date: Sun, 5 Sep 2021 17:50:08 +0900 Subject: [PATCH] remove unnecessary mut in compiler.rs --- compiler/src/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/compile.rs b/compiler/src/compile.rs index beded10cf0..f78e6417c0 100644 --- a/compiler/src/compile.rs +++ b/compiler/src/compile.rs @@ -2460,7 +2460,7 @@ impl Compiler { self.current_source_location = location; } - fn get_source_line_number(&mut self) -> usize { + fn get_source_line_number(&self) -> usize { self.current_source_location.row() }