mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Only define assert_size!() macro when testing.
This commit is contained in:
parent
83f7c67870
commit
5e64dee0ed
1 changed files with 1 additions and 0 deletions
|
@ -552,6 +552,7 @@ macro_rules! generate_element {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
macro_rules! assert_size (
|
macro_rules! assert_size (
|
||||||
($t:ty, $sz:expr) => (
|
($t:ty, $sz:expr) => (
|
||||||
assert_eq!(::std::mem::size_of::<$t>(), $sz);
|
assert_eq!(::std::mem::size_of::<$t>(), $sz);
|
||||||
|
|
Loading…
Reference in a new issue