fix: update zerocopy usage in header and wrapper modules to use new traits

This commit is contained in:
vincent-herlemont
2024-10-05 10:25:13 +02:00
parent 83de7d88cd
commit 9a284d2942
2 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use zerocopy::little_endian::U32;
use zerocopy::{AsBytes, FromBytes, FromZeroes};
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};
#[derive(FromZeroes, FromBytes, AsBytes, Debug)]
#[derive(FromBytes, IntoBytes, Immutable, KnownLayout, Debug)]
#[repr(C)]
pub struct Header {
pub(crate) id: U32,