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.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mingling_core/src/program.rs') diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index 096f292..d14c366 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -118,9 +118,7 @@ where C: 'static, { THIS_PROGRAM - .get() - .unwrap() - .as_ref() + .get_raw() .unwrap() .downcast_ref::>() .unwrap() -- cgit