mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-02 03:31:20 +00:00
Remove unneeded allow(dead_code).
This commit is contained in:
parent
a0ea1af71f
commit
262d431b49
@ -191,9 +191,8 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Represents a type-erased function provided by either the host or the WebAssembly program.
|
/// Represents a type-erased function provided by either the host or the WebAssembly program.
|
||||||
#[allow(dead_code)]
|
|
||||||
pub struct ErasedFunc<'a> {
|
pub struct ErasedFunc<'a> {
|
||||||
inner: Box<dyn Kind>,
|
_inner: Box<dyn Kind>,
|
||||||
|
|
||||||
/// The function pointer.
|
/// The function pointer.
|
||||||
func: NonNull<vm::Func>,
|
func: NonNull<vm::Func>,
|
||||||
@ -243,7 +242,7 @@ where
|
|||||||
{
|
{
|
||||||
fn from(that: Func<'a, Args, Rets, Inner>) -> ErasedFunc<'a> {
|
fn from(that: Func<'a, Args, Rets, Inner>) -> ErasedFunc<'a> {
|
||||||
ErasedFunc {
|
ErasedFunc {
|
||||||
inner: Box::new(that.inner),
|
_inner: Box::new(that.inner),
|
||||||
func: that.func,
|
func: that.func,
|
||||||
func_env: that.func_env,
|
func_env: that.func_env,
|
||||||
vmctx: that.vmctx,
|
vmctx: that.vmctx,
|
||||||
@ -378,7 +377,7 @@ impl<'a> ErasedFunc<'a> {
|
|||||||
impl Kind for AutoRelease {}
|
impl Kind for AutoRelease {}
|
||||||
|
|
||||||
ErasedFunc {
|
ErasedFunc {
|
||||||
inner: Box::new(AutoRelease { ptr }),
|
_inner: Box::new(AutoRelease { ptr }),
|
||||||
func: ptr.cast::<vm::Func>(),
|
func: ptr.cast::<vm::Func>(),
|
||||||
func_env: None,
|
func_env: None,
|
||||||
vmctx: ptr::null_mut(),
|
vmctx: ptr::null_mut(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user