From e771f40cc605bac6ceb7697311e23412498f1333 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Wed, 31 May 2023 13:36:44 +0000 Subject: [PATCH] Derive Clone and Copy for Instruction Fixes #44 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0607382..e5de4c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -151,7 +151,7 @@ pub enum SetDestination { // RESERVED = 0b111, } -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub enum InstructionOperands { JMP { condition: JmpCondition, @@ -374,7 +374,7 @@ impl InstructionOperands { } /// A PIO instruction. -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub struct Instruction { pub operands: InstructionOperands, pub delay: u8,