Revert "Remove unnecessary "unsafe" block to fix compiler warning"

This reverts commit 7af93f1532.
This commit is contained in:
Aleksy Grabowski
2024-09-06 10:26:17 +02:00
parent 08aed04dd2
commit d3071988b2

View File

@@ -89,6 +89,7 @@ impl ForeignFunctionTable {
} }
fn map_type_ffi(&mut self, source: &Atom) -> *mut ffi_type { fn map_type_ffi(&mut self, source: &Atom) -> *mut ffi_type {
unsafe {
match source { match source {
atom!("sint64") => addr_of_mut!(types::sint64), atom!("sint64") => addr_of_mut!(types::sint64),
atom!("sint32") => addr_of_mut!(types::sint32), atom!("sint32") => addr_of_mut!(types::sint32),
@@ -110,6 +111,7 @@ impl ForeignFunctionTable {
}, },
} }
} }
}
pub(crate) fn load_library( pub(crate) fn load_library(
&mut self, &mut self,