From 3b10945aa429838763216e5c4c09d2f8fead0728 Mon Sep 17 00:00:00 2001 From: Iaroslav Mazur Date: Fri, 13 Sep 2024 21:41:14 +0300 Subject: [PATCH] fix: clippy CI issue on main --- crates/interpreter/src/function_stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/interpreter/src/function_stack.rs b/crates/interpreter/src/function_stack.rs index e6482d8e..c68f77a7 100644 --- a/crates/interpreter/src/function_stack.rs +++ b/crates/interpreter/src/function_stack.rs @@ -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 { - self.return_stack.pop().map(|frame| { + self.return_stack.pop().inspect(|frame| { self.current_code_idx = frame.idx; frame })