1427: Make func clonable r=MarkMcCaskey a=michaelvoronov

Resolves https://github.com/wasmerio/wasmer/issues/1420.

Co-authored-by: vms <michail.vms@gmail.com>
This commit is contained in:
bors[bot] 2020-05-05 21:16:02 +00:00 committed by GitHub
commit 4a37bac7e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,