From b52847e4673d98f288ac76eed2c98d3093aa84f0 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 16 Jul 2020 10:21:20 +0800 Subject: [PATCH] xous-rs: mark `Scalar` messaages as `Clone,Copy` They are all scalar values, so there's no reason not to mark them Copy. Signed-off-by: Sean Cross --- xous-rs/src/definitions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index 109da8ad3..116d8a5cd 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -209,7 +209,7 @@ impl MemoryMessage { } #[repr(C)] -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone, Copy)] /// A simple scalar message. This is similar to a `move` message. pub struct ScalarMessage { pub id: MessageId,