From 929ef45b06db2ccc23d693d94924681a042cb191 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 26 Jul 2024 10:57:54 -0700 Subject: [PATCH] Derive `Copy` for `Val` --- crates/wasmtime/src/runtime/values.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wasmtime/src/runtime/values.rs b/crates/wasmtime/src/runtime/values.rs index 1a3a2c7c83ff..735454fcc3a2 100644 --- a/crates/wasmtime/src/runtime/values.rs +++ b/crates/wasmtime/src/runtime/values.rs @@ -14,7 +14,7 @@ pub use crate::runtime::vm::ValRaw; /// /// Note that we inline the `enum Ref { ... }` variants into `enum Val { ... }` /// here as a size optimization. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Copy)] pub enum Val { // NB: the ordering here is intended to match the ordering in // `ValType` to improve codegen when learning the type of a value.