mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 15:11:37 +00:00
remove unneeded call to main in plugin example
This commit is contained in:
@ -137,8 +137,6 @@ fn main() {
|
||||
// set up logging by replacing stdout
|
||||
initialize(instance.context_mut());
|
||||
|
||||
let main = instance.func::<(), ()>("_start").unwrap();
|
||||
main.call().expect("Could not initialize");
|
||||
// get a reference to the function "plugin_entrypoint" which takes an i32 and returns an i32
|
||||
let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap();
|
||||
// call the "entry_point" function in WebAssembly with the number "2" as the i32 argument
|
||||
|
Reference in New Issue
Block a user