chore: 清理 oxide_vm clippy 告警

This commit is contained in:
2026-08-14 05:26:46 +08:00
parent ae58508760
commit 7799ebb055
14 changed files with 29 additions and 36 deletions
+2 -6
View File
@@ -315,9 +315,7 @@ impl Vm {
return None;
}
let (frame_depth, finally_pc, finally_active) = {
let Some(h) = self.try_stack.last() else {
return None;
};
let h = self.try_stack.last()?;
(h.frame_depth, h.finally_pc, h.finally_active)
};
if frame_depth != depth {
@@ -524,9 +522,7 @@ impl Vm {
let depth = self.frames.len();
loop {
let (frame_depth, finally_pc, finally_active) = {
let Some(h) = self.try_stack.last() else {
return None;
};
let h = self.try_stack.last()?;
(h.frame_depth, h.finally_pc, h.finally_active)
};
if frame_depth != depth {