mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-02-16 02:20:43 +00:00
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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user