format scene glyph migration changes

This commit is contained in:
2026-04-24 15:43:39 +01:00
parent 41801a8e7a
commit 92be3b90fb
8 changed files with 89 additions and 115 deletions
@@ -191,11 +191,8 @@ impl NativeInterface for VirtualMachineRuntime {
let bound = catch_unwind(AssertUnwindSafe(|| hw.bind_scene(scene_bank_id)))
.map_err(|payload| VmFault::Panic(Self::panic_payload_to_string(payload)))?;
let status = if bound {
ComposerOpStatus::Ok
} else {
ComposerOpStatus::SceneUnavailable
};
let status =
if bound { ComposerOpStatus::Ok } else { ComposerOpStatus::SceneUnavailable };
ret.push_int(status as i64);
Ok(())
}
@@ -180,8 +180,7 @@ impl VirtualMachineRuntime {
{
if let Err(payload) = catch_unwind(AssertUnwindSafe(|| hw.render_frame())) {
let message = Self::host_panic_payload_to_string(payload);
let report =
CrashReport::VmPanic { message, pc: Some(vm.pc() as u32) };
let report = CrashReport::VmPanic { message, pc: Some(vm.pc() as u32) };
self.log(
LogLevel::Error,
LogSource::Vm,