Remove unnecessary "unsafe" block to fix compiler warning
This commit is contained in:
@@ -89,7 +89,6 @@ 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),
|
||||||
@@ -111,7 +110,6 @@ impl ForeignFunctionTable {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn load_library(
|
pub(crate) fn load_library(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
Reference in New Issue
Block a user