From 345d37b8ff1c72884f60bab3cbdbcc7b6c52c108 Mon Sep 17 00:00:00 2001 From: Jonathan Gilbert Date: Sat, 1 Nov 2025 16:34:11 -0500 Subject: [PATCH] Changed the GLOBAL_CALLBACK code in src/platform/mod.rs back to a static reference and instead explicitly allowed static_mut_refs in this instance. --- src/platform/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 413e517..6818add 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -62,7 +62,8 @@ extern "C" fn breakdown_signal_handler(sig: i32) { .ok(); } unsafe { - if let Some(callback) = &raw const GLOBAL_CALLBACK { + #[allow(static_mut_refs)] + if let Some(callback) = &GLOBAL_CALLBACK { callback() } }