From 97fb3cc56442c4d831ef2c9e1599cc8105ff2b96 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Tue, 12 Dec 2023 10:09:38 +0100 Subject: test(tinywasm): add AssertReturn to spec test harness Signed-off-by: Henry Gressmann --- crates/types/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/types/src') diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 4e09e00..4defb23 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -36,7 +36,7 @@ pub use instructions::*; /// This is the internal representation of a WebAssembly module in TinyWasm. /// TinyWasmModules are validated before being created, so they are guaranteed to be valid (as long as they were created by TinyWasm). /// This means you should not trust a TinyWasmModule created by a third party to be valid. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct TinyWasmModule { /// The version of the WebAssembly module. pub version: Option, @@ -266,7 +266,7 @@ pub struct FuncType { } /// A WebAssembly Function -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Function { pub ty: TypeAddr, pub locals: Box<[ValType]>, @@ -274,7 +274,7 @@ pub struct Function { } /// A WebAssembly Module Export -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Export { /// The name of the export. pub name: Box, -- cgit v1.3.1