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
Signed by: pep
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);