Skip to content

Commit

Permalink
Merge pull request #164 from fitzgen/clone-state-machine
Browse files Browse the repository at this point in the history
Derive `Clone` for `StateMachine` and `OpcodesIter`
  • Loading branch information
fitzgen committed Dec 9, 2016
2 parents 28ae346 + 9cafdb1 commit 43e810a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<'input, Endian> DebugLine<'input, Endian>
/// "The hypothetical machine used by a consumer of the line number information
/// to expand the byte-coded instruction stream into a matrix of line number
/// information." -- Section 6.2.1
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct StateMachine<'input, Endian>
where Endian: Endianity
{
Expand Down Expand Up @@ -630,7 +630,7 @@ impl<'input> fmt::Display for Opcode<'input> {
/// See
/// [`LineNumberProgramHeader::opcodes`](./struct.LineNumberProgramHeader.html#method.opcodes)
/// for more details.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct OpcodesIter<'input, Endian>
where Endian: Endianity
{
Expand Down

0 comments on commit 43e810a

Please sign in to comment.