Remove unused struct fields

This commit is contained in:
Isaac Clayton 2022-07-11 10:39:14 +02:00
parent 8c91c5c575
commit 5ec828a3e2

View File

@ -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<WasiCtxAlloc>,
instance: Instance,
}
@ -293,9 +291,7 @@ impl Plugin {
}
println!();
}
}
impl Plugin {
async fn init(
precompiled: bool,
module: Vec<u8>,
@ -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.