mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-03 16:31:02 +00:00
fix lint errors
This commit is contained in:
parent
c51d44578d
commit
580a153821
@ -1,6 +1,6 @@
|
|||||||
use crate::codegen::{CodegenError, FunctionCodeGenerator, ModuleCodeGenerator};
|
use crate::codegen::{CodegenError, FunctionCodeGenerator, ModuleCodeGenerator};
|
||||||
use wasmer_runtime_core::{
|
use wasmer_runtime_core::{
|
||||||
backend::{Backend, FuncResolver, ProtectedCaller},
|
backend::{Backend, CompilerConfig, FuncResolver, ProtectedCaller},
|
||||||
module::{
|
module::{
|
||||||
DataInitializer, ExportIndex, ImportName, ModuleInfo, StringTable, StringTableBuilder,
|
DataInitializer, ExportIndex, ImportName, ModuleInfo, StringTable, StringTableBuilder,
|
||||||
TableInitializer,
|
TableInitializer,
|
||||||
|
@ -481,7 +481,7 @@ pub unsafe extern "C" fn wasmer_module_instantiate(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let module = &*(module as *const Module);
|
let module = &*(module as *const Module);
|
||||||
let new_instance = if let Ok(res) = module.instantiate(&import_object, None) {
|
let new_instance = if let Ok(res) = module.instantiate(&import_object) {
|
||||||
res
|
res
|
||||||
} else {
|
} else {
|
||||||
update_last_error(CApiError {
|
update_last_error(CApiError {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user