fix lint errors

This commit is contained in:
Mark McCaskey 2019-03-27 14:30:57 -07:00
parent c51d44578d
commit 580a153821
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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 {