From 4244dc2be1778275dd12bef06eb8fa23815eb4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 16 Dec 2022 20:24:01 +0100 Subject: [PATCH] parsers: Conditional on rustc version for test_size tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- parsers/src/jingle.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parsers/src/jingle.rs b/parsers/src/jingle.rs index 584abfbb..664d572e 100644 --- a/parsers/src/jingle.rs +++ b/parsers/src/jingle.rs @@ -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);