diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-12-17 09:12:20 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-12-17 10:17:50 +0100 |
commit | 3c8f396f21dc75f733ef5eefe99afd0e9e798f40 (patch) | |
tree | c58b0f8714320a131251c36888d43c0cf4327ada /src/util.rs | |
parent | 5724b87a1c9fcf66e6205af6732fc07e4c9d909d (diff) | |
download | ntw-3c8f396f21dc75f733ef5eefe99afd0e9e798f40.tar.gz ntw-3c8f396f21dc75f733ef5eefe99afd0e9e798f40.tar.bz2 |
Remove label from assert_maximum_size macro
Since static_assertions 1.0.0, we no longer have to specify a label when
calling an assert macro. Therefore we can also remove the label from
our own assert macro assert_maximum_size.
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs index 4539bd6..61bcfe7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -78,7 +78,7 @@ macro_rules! enum_u8 { } macro_rules! assert_maximum_size { - ($i:ident; $t:ident, $e: expr) => { + ($t:ident, $e: expr) => { ::static_assertions::const_assert!( ::core::mem::size_of::<$t>() <= $e ); |