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/addr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usbh/src/pipe/addr.rs') diff --git a/usbh/src/pipe/addr.rs b/usbh/src/pipe/addr.rs index 81cef5d..aa26048 100644 --- a/usbh/src/pipe/addr.rs +++ b/usbh/src/pipe/addr.rs @@ -5,7 +5,7 @@ /// Reset: 0xxxxxxxxx /// Property: NA #[derive(Clone, Copy, Debug)] -#[repr(C)] +#[repr(C, packed)] pub(crate) struct Addr(u32); pub(crate) struct R { -- cgit v1.2.3