mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-14 07:21:42 +00:00
Use shared ref to pass the State.
This commit is contained in:
@ -84,7 +84,7 @@ impl<St> FuncInstance<St> {
|
||||
pub fn invoke(
|
||||
func: Rc<FuncInstance<St>>,
|
||||
args: Vec<RuntimeValue>,
|
||||
state: &mut St,
|
||||
state: &St,
|
||||
) -> Result<Option<RuntimeValue>, Error> {
|
||||
enum InvokeKind<St> {
|
||||
Internal(FunctionContext<St>),
|
||||
|
Reference in New Issue
Block a user