mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-29 16:41:33 +00:00
Fixed start function
This commit is contained in:
@ -503,9 +503,9 @@ impl Instance {
|
|||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn start(&mut self, vmctx: &VmCtx) {
|
pub fn start(&self, vmctx: &VmCtx) {
|
||||||
if let Some(func_index) = self.start_func {
|
if let Some(func_index) = self.start_func {
|
||||||
let func: fn(&VmCtx) = get_instance_function!(self, func_index);
|
let func: fn(&VmCtx) = get_instance_function!(&self, func_index);
|
||||||
func(vmctx)
|
func(vmctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user