From 7e3cbac052e156b5ce87ee93f57981f3adb6a7a8 Mon Sep 17 00:00:00 2001 From: Elizabeth Gilbert Date: Fri, 3 May 2024 16:58:36 -0400 Subject: [PATCH] fix some warnings showing up on GH actions --- src/verifier/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/verifier/types.rs b/src/verifier/types.rs index 2c275b8e..31889183 100644 --- a/src/verifier/types.rs +++ b/src/verifier/types.rs @@ -34,7 +34,7 @@ impl SymbolTable { } pub fn set_curr_scope_info(&mut self, name: String, ty: ScopeType) { - let mut curr = self.get_curr_scope_mut().unwrap(); + let curr = self.get_curr_scope_mut().unwrap(); curr.name = name; curr.ty = ty; } @@ -74,7 +74,7 @@ impl SymbolTable { }; // create new instance fix Rust's compilation issue. - let mut curr = self.get_curr_scope_mut().unwrap(); + let curr = self.get_curr_scope_mut().unwrap(); if let (Some(new_curr), Some(new_next)) = (new_curr_scope, new_next) { curr.next = new_next; self.curr_scope = new_curr;