From c3e9e367828d5c3a8d2e96e9ea6a09224e872a59 Mon Sep 17 00:00:00 2001 From: vms Date: Sat, 2 May 2020 12:28:00 +0300 Subject: [PATCH] make func clonable --- lib/runtime-core/src/typed_func.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 5cef19ca4..2b93060a3 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -216,6 +216,7 @@ pub struct DynamicFunc<'a> { unsafe impl<'a> Send for DynamicFunc<'a> {} /// Represents a function that can be used by WebAssembly. +#[derive(Clone)] pub struct Func<'a, Args = (), Rets = (), Inner: Kind = Wasm> { inner: Inner,