1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-26 08:58:27 +02:00

parsers: Conditional on rustc version for test_size tests

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-12-16 20:24:01 +01:00
parent 309b4cf87d
commit 4244dc2be1
No known key found for this signature in database
GPG Key ID: DEDA74AEECA9D0F2

View File

@ -704,7 +704,11 @@ mod tests {
assert_size!(Senders, 1);
assert_size!(Disposition, 1);
assert_size!(ContentId, 24);
// TODO: Remove conditional
#[cfg(feature = "nightly")]
assert_size!(Content, 448);
#[cfg(feature = "stable")]
assert_size!(Content, 440);
assert_size!(Reason, 1);
assert_size!(ReasonElement, 32);
assert_size!(SessionId, 24);