Improved import functions casting readability

This commit is contained in:
Syrus Akbary
2018-11-26 21:23:23 -08:00
parent c2ede37a72
commit 4fb01c87ec
4 changed files with 51 additions and 51 deletions

View File

@ -218,7 +218,7 @@ impl Instance {
"The import {}.{} is not provided, therefore will be mocked.",
module, field
);
&(mock_fn as *const u8)
&(mock_fn as _)
} else {
return Err(ErrorKind::LinkError(format!(
"Imported function {}.{} was not provided in the import_functions",