Skip to content

Commit 373c1d4

Browse files
committed
Derive Clone and Debug for InstructionDecoder
1 parent eaae192 commit 373c1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decoder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use crate::instruction::*;
3838
/// Represents an instruction decoder that maintains a state.
3939
/// Its main use case is to decode instructions progressively
4040
/// byte by byte, when a data source cannot implement `Read`.
41-
#[derive(Default)]
41+
#[derive(Clone, Debug, Default)]
4242
pub struct InstructionDecoder {
4343
received_bytes: Vec<u8>,
4444
}

0 commit comments

Comments
 (0)