mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-25 20:51:54 +00:00
Fix warnings
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
extern crate parity_wasm;
|
||||
|
||||
use std::env::args;
|
||||
use parity_wasm::interpreter::{ModuleInstance, Imports};
|
||||
use parity_wasm::interpreter::ModuleInstance;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<_> = args().collect();
|
||||
|
@ -1,7 +1,6 @@
|
||||
use std::rc::Rc;
|
||||
use std::fmt;
|
||||
use std::collections::HashMap;
|
||||
use std::any::Any;
|
||||
use elements::{FunctionType, Opcodes, Local};
|
||||
use interpreter::{Error, ModuleInstance};
|
||||
use interpreter::runner::{prepare_function_args, FunctionContext, Interpreter};
|
||||
|
@ -34,7 +34,7 @@ impl<St> HostModuleBuilder<St> {
|
||||
f: Cl,
|
||||
) {
|
||||
let func_type = FunctionType::new(vec![], Ret::value_type());
|
||||
let host_func = Rc::new(move |state: &mut St, args: &[RuntimeValue]| -> Result<Option<RuntimeValue>, Error> {
|
||||
let host_func = Rc::new(move |state: &mut St, _args: &[RuntimeValue]| -> Result<Option<RuntimeValue>, Error> {
|
||||
let result = f(state);
|
||||
result.map(|r| r.and_then(|r| r.as_return_val()))
|
||||
});
|
||||
|
@ -3,7 +3,7 @@ mod wabt;
|
||||
mod wasm;
|
||||
|
||||
mod utils {
|
||||
use elements::{ExportEntry, InitExpr, Opcode, ValueType, GlobalType, GlobalEntry, MemoryType, TableType};
|
||||
use elements::{MemoryType, TableType};
|
||||
use interpreter::{ProgramInstance, HostModuleBuilder, MemoryInstance, TableInstance, GlobalInstance, RuntimeValue};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
Reference in New Issue
Block a user