style: 自动格式化

This commit is contained in:
2026-10-12 19:47:16 +00:00
parent d026ea626e
commit f78f7617fd
3 changed files with 4 additions and 16 deletions
+1 -5
View File
@@ -142,11 +142,7 @@ impl SuspendedFrame {
};
// 平表条目取 Arc 克隆(与调用方共享同一编译产物):后续 activate_immutables
// 等 &mut 调用期间不持有对注册表的借用。
let module = vm
.tables
.get(&gen)
.and_then(|t| t.modules.get(self.sub_idx as usize))
.cloned();
let module = vm.tables.get(&gen).and_then(|t| t.modules.get(self.sub_idx as usize)).cloned();
match module {
Some(m) => vm.activate_immutables(gen, self.sub_idx as usize, &m),
None => return Err("suspended state module table is no longer available".into()),