aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 89c88ab..2118095 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -1,4 +1,5 @@
#[repr(packed)]
+#[derive(Debug, Clone, Copy)]
struct Header {
secs: u32,
micros: u32,
@@ -17,6 +18,7 @@ impl Header {
}
}
+#[derive(Debug, Clone)]
pub struct Parser {
reading: std::collections::VecDeque<u8>,
read_state: Option<Header>,