mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-26 11:41:13 +08:00
style: 自动格式化
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user