fix: Remove duplicate trait impl

This commit is contained in:
Christoph Herzog
2022-11-08 09:41:28 +01:00
parent 1150c43870
commit d0f8c136a7

View File

@@ -47,16 +47,6 @@ impl<Args: WasmTypeList, Rets: WasmTypeList> Clone for TypedFunction<Args, Rets>
}
}
impl<Args, Rets> From<TypedFunction<Args, Rets>> for Function
where
Args: WasmTypeList,
Rets: WasmTypeList,
{
fn from(other: TypedFunction<Args, Rets>) -> Self {
other.func
}
}
thread_local! {
static ON_CALLED: Cell<Option<Box<dyn FnOnce(StoreMut<'_>) -> Result<OnCalledAction, Box<dyn std::error::Error + Send + Sync>>>>> = Cell::new(None);
}