diff --git a/crates/plugin_runtime/src/plugin.rs b/crates/plugin_runtime/src/plugin.rs index d0fff54f87..56fb738e0a 100644 --- a/crates/plugin_runtime/src/plugin.rs +++ b/crates/plugin_runtime/src/plugin.rs @@ -268,8 +268,6 @@ impl WasiCtxAlloc { /// Represents a WebAssembly plugin, with access to the WebAssembly System Inferface. /// Build a new plugin using [`PluginBuilder`]. pub struct Plugin { - engine: Engine, - module: Module, store: Store, instance: Instance, } @@ -293,9 +291,7 @@ impl Plugin { } println!(); } -} -impl Plugin { async fn init( precompiled: bool, module: Vec, @@ -335,12 +331,7 @@ impl Plugin { free_buffer, }); - Ok(Plugin { - engine, - module, - store, - instance, - }) + Ok(Plugin { store, instance }) } /// Attaches a file or directory the the given system path to the runtime.