Skip to content

Commit

Permalink
fix some warnings showing up on GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ejrgilbert committed May 3, 2024
1 parent d464784 commit 7e3cbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verifier/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7e3cbac

Please sign in to comment.