From 78f282007980fe9c9ef143a6bc6fb76282957ab6 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Tue, 9 Jun 2026 06:20:21 +0800 Subject: Replace `OnceLock>>` with custom `ProgramCell` type Reduces indirection and allows taking ownership of the program instance for proper cleanup before `process::exit()` --- mingling_core/src/program/repl_exec.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mingling_core/src/program/repl_exec.rs') diff --git a/mingling_core/src/program/repl_exec.rs b/mingling_core/src/program/repl_exec.rs index d6b3f00..d292be1 100644 --- a/mingling_core/src/program/repl_exec.rs +++ b/mingling_core/src/program/repl_exec.rs @@ -129,9 +129,7 @@ where payload: panic_info, }; let program = crate::program::THIS_PROGRAM - .get() - .unwrap() - .as_ref() + .get_raw() .unwrap() .downcast_ref::>() .unwrap(); -- cgit