Skip to content

Commit

Permalink
Derive Clone and Copy for Instruction
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
jannic committed May 31, 2023
1 parent 35d9205 commit e771f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pub enum SetDestination {
// RESERVED = 0b111,
}

#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub enum InstructionOperands {
JMP {
condition: JmpCondition,
Expand Down Expand Up @@ -374,7 +374,7 @@ impl InstructionOperands {
}

/// A PIO instruction.
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Instruction {
pub operands: InstructionOperands,
pub delay: u8,
Expand Down

0 comments on commit e771f40

Please sign in to comment.