Fix warnings in rs{begin,end}.rs files

As can be seen locally and in CI logs (dist-i686-mingw) that code used
to trigger `static_mut_refs` warning.
This commit is contained in:
Mateusz Mikuła
2026-02-19 22:28:52 +01:00
parent fbd6934114
commit 6c6f5860f6
+2 -2
View File
@@ -90,12 +90,12 @@ impl ::Copy for $t {}
unsafe extern "C" fn init() {
// register unwind info on module startup
__register_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &mut OBJ as *mut _ as *mut u8);
__register_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
}
unsafe extern "C" fn uninit() {
// unregister on shutdown
__deregister_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &mut OBJ as *mut _ as *mut u8);
__deregister_frame_info(&__EH_FRAME_BEGIN__ as *const u8, &raw mut OBJ as *mut u8);
}
// MinGW-specific init/uninit routine registration