diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/device.rs | 4 | ||||
-rw-r--r-- | src/util.rs | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/device.rs b/src/device.rs index 830fa93..7820a80 100644 --- a/src/device.rs +++ b/src/device.rs @@ -66,7 +66,7 @@ struct Request { pub crc: u32, } -assert_eq_size!(request; [u8; REPORT_LEN], Request); +assert_eq_size!([u8; REPORT_LEN], Request); #[derive(Serialize)] struct Response { @@ -79,7 +79,7 @@ struct Response { pub crc: u32, } -assert_eq_size!(response; [u8; REPORT_LEN], Response); +assert_eq_size!([u8; REPORT_LEN], Response); impl Response { fn new(device_status: DeviceStatus, command_id: u8, last_crc: u32) -> Response { diff --git a/src/util.rs b/src/util.rs index 7b12afb..4539bd6 100644 --- a/src/util.rs +++ b/src/util.rs @@ -80,7 +80,6 @@ macro_rules! enum_u8 { macro_rules! assert_maximum_size { ($i:ident; $t:ident, $e: expr) => { ::static_assertions::const_assert!( - $i; ::core::mem::size_of::<$t>() <= $e ); } |