Remove unused struct fields
This commit is contained in:
parent
8c91c5c575
commit
5ec828a3e2
1 changed files with 1 additions and 10 deletions
|
@ -268,8 +268,6 @@ impl WasiCtxAlloc {
|
||||||
/// Represents a WebAssembly plugin, with access to the WebAssembly System Inferface.
|
/// Represents a WebAssembly plugin, with access to the WebAssembly System Inferface.
|
||||||
/// Build a new plugin using [`PluginBuilder`].
|
/// Build a new plugin using [`PluginBuilder`].
|
||||||
pub struct Plugin {
|
pub struct Plugin {
|
||||||
engine: Engine,
|
|
||||||
module: Module,
|
|
||||||
store: Store<WasiCtxAlloc>,
|
store: Store<WasiCtxAlloc>,
|
||||||
instance: Instance,
|
instance: Instance,
|
||||||
}
|
}
|
||||||
|
@ -293,9 +291,7 @@ impl Plugin {
|
||||||
}
|
}
|
||||||
println!();
|
println!();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl Plugin {
|
|
||||||
async fn init(
|
async fn init(
|
||||||
precompiled: bool,
|
precompiled: bool,
|
||||||
module: Vec<u8>,
|
module: Vec<u8>,
|
||||||
|
@ -335,12 +331,7 @@ impl Plugin {
|
||||||
free_buffer,
|
free_buffer,
|
||||||
});
|
});
|
||||||
|
|
||||||
Ok(Plugin {
|
Ok(Plugin { store, instance })
|
||||||
engine,
|
|
||||||
module,
|
|
||||||
store,
|
|
||||||
instance,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Attaches a file or directory the the given system path to the runtime.
|
/// Attaches a file or directory the the given system path to the runtime.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue