From d94d88faa9c0e1a5c18b21962964dfdda3011a1d Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 30 Jul 2019 09:48:19 -0400 Subject: Use `repr(packed)` on pipe descriptors structure. Ensure offsets and sizes are correct with tests. --- usbh/src/pipe/status_bk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usbh/src/pipe/status_bk.rs') diff --git a/usbh/src/pipe/status_bk.rs b/usbh/src/pipe/status_bk.rs index 4ddb420..489fc62 100644 --- a/usbh/src/pipe/status_bk.rs +++ b/usbh/src/pipe/status_bk.rs @@ -5,7 +5,7 @@ /// Reset: 0xxxxxxx /// Property: NA #[derive(Clone, Copy, Debug)] -#[repr(C)] +#[repr(C, packed)] pub(crate) struct StatusBk(u8); pub(crate) struct R { -- cgit v1.2.3