From a72610a546d26df8042b1e131133636a27c90d0f Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Wed, 31 Jul 2019 16:01:44 +0900 Subject: [PATCH] remove unneeded call to main in plugin example --- examples/plugin.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/plugin.rs b/examples/plugin.rs index ed36c3cd6..c4f1d2de3 100644 --- a/examples/plugin.rs +++ b/examples/plugin.rs @@ -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