Skip to content

Commit

Permalink
fix: clippy CI issue on main
Browse files Browse the repository at this point in the history
  • Loading branch information
IaroslavMazur committed Sep 13, 2024
1 parent 51f5384 commit 3b10945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/interpreter/src/function_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl FunctionStack {

/// Pops a frame from the stack and sets current_code_idx to the popped frame's idx.
pub fn pop(&mut self) -> Option<FunctionReturnFrame> {
self.return_stack.pop().map(|frame| {
self.return_stack.pop().inspect(|frame| {
self.current_code_idx = frame.idx;
frame
})
Expand Down

0 comments on commit 3b10945

Please # to comment.