Skip to content

Commit

Permalink
Derive Clone and Debug for InstructionDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
rzumer committed Feb 7, 2024
1 parent eaae192 commit 373c1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use crate::instruction::*;
/// Represents an instruction decoder that maintains a state.
/// Its main use case is to decode instructions progressively
/// byte by byte, when a data source cannot implement `Read`.
#[derive(Default)]
#[derive(Clone, Debug, Default)]
pub struct InstructionDecoder {
received_bytes: Vec<u8>,
}
Expand Down

0 comments on commit 373c1d4

Please sign in to comment.