Skip to content

Commit

Permalink
derived Clone and Debug for Program (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkomenda committed Aug 2, 2019
1 parent fc9a6c3 commit 6b957a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ use crate::error::ParsingError;
use failure::Error;
use std::convert::TryFrom;

#[derive(Clone, Debug)]
pub struct Program(pub Vec<Instruction>);

#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum Instruction {
Fd {
name: String,
Expand Down Expand Up @@ -370,7 +371,7 @@ impl Instruction {
}
}

#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum Value {
Constant(u64),
Register(u8),
Expand Down

0 comments on commit 6b957a4

Please sign in to comment.