Remove unnecessary "unsafe" block to fix compiler warning

This commit is contained in:
Aleksy Grabowski
2024-09-06 08:20:13 +02:00
parent 2b73107631
commit 7af93f1532

View File

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