Change Rcs to type aliases

This commit is contained in:
Sergey Pepyakin
2018-01-05 13:10:01 +03:00
parent e0ddc56fec
commit 9b11d1c96c
10 changed files with 96 additions and 70 deletions

View File

@ -3,6 +3,7 @@ use std::fmt;
use std::collections::HashMap;
use std::borrow::Cow;
use elements::{FunctionType, Local, Opcodes};
use interpreter::module::FuncRef;
use interpreter::{Error, ModuleInstance};
use interpreter::runner::{prepare_function_args, FunctionContext, Interpreter};
use interpreter::host::HostFunc;
@ -83,7 +84,7 @@ impl FuncInstance {
}
pub fn invoke<'a, 'b: 'a>(
func: Rc<FuncInstance>,
func: FuncRef,
args: Cow<[RuntimeValue]>,
state: &'a mut HostState<'b>,
) -> Result<Option<RuntimeValue>, Error> {