From 0c251f90fd32e5d7d7bc5e5127970d47f650f525 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 30 Dec 2024 21:08:58 -0800 Subject: [PATCH] fixups for test --- src/v1.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/v1.rs b/src/v1.rs index e78ac66..3386644 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -284,11 +284,12 @@ impl std::error::Error for Error{} #[binrw] #[brw(little)] -#[derive(Debug)] +#[derive(Debug,Clone,Copy)] pub struct BlockId(u32); #[binrw] #[brw(little)] +#[derive(Debug,Clone,Copy)] pub struct TimedBlockId{ pub time:f64, pub block_id:BlockId, @@ -296,6 +297,7 @@ pub struct TimedBlockId{ #[binrw] #[brw(little)] +#[derive(Debug)] pub struct FileHeader{ #[brw(magic=b"qbot")] pub file_version:u32, @@ -310,7 +312,7 @@ pub struct FileHeader{ } pub struct File{ - header:FileHeader, + pub header:FileHeader, //reference to the data data:R, }