Merge pull request #28 from fluencelabs/safe_imports

Make imports safe
This commit is contained in:
vms 2021-04-15 22:58:43 +03:00 committed by GitHub
commit 1755202195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,9 @@ fn generate_wrapper_functions(extern_item: &fce_ast_types::AstExternModItem) ->
#[cfg(target_arch = "wasm32")]
#[doc(hidden)]
#[allow(clippy::all)]
#visibility unsafe fn #func_name(#(#arg_names: #arg_types), *) #return_type {
#visibility fn #func_name(#(#arg_names: #arg_types), *) #return_type {
unsafe {
// make complex arguments manually droppable
#arg_transforms
@ -132,6 +134,8 @@ fn generate_wrapper_functions(extern_item: &fce_ast_types::AstExternModItem) ->
// return value conversation from Wasm type to a Rust type
#epilog
}
}
};