From 5ec828a3e202a9dad292d2972f0ce615a1efc873 Mon Sep 17 00:00:00 2001 From: Isaac Clayton Date: Mon, 11 Jul 2022 10:39:14 +0200 Subject: [PATCH] Remove unused struct fields --- crates/plugin_runtime/src/plugin.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/plugin_runtime/src/plugin.rs b/crates/plugin_runtime/src/plugin.rs index d0fff54f87a302e15942890a35e9ab2b4bfaf709..56fb738e0a44666424d1f5276a29a150afc6ea69 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.