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.

This commit is contained in:
Jonathan Gilbert
2025-11-01 16:34:11 -05:00
parent 95dd7e5c21
commit 345d37b8ff

View File

@@ -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()
}
}