From b94919ae995e279dc30a302758eed9abeed680dc Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 1 Jul 2024 19:38:20 +0200 Subject: [PATCH] xmpp-parsers: Fix tests on 32-bit This has been tested on ARMv7. --- parsers/src/data_forms.rs | 2 +- parsers/src/iq.rs | 2 +- parsers/src/stanza_id.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parsers/src/data_forms.rs b/parsers/src/data_forms.rs index eb1b165e..37ad5619 100644 --- a/parsers/src/data_forms.rs +++ b/parsers/src/data_forms.rs @@ -394,7 +394,7 @@ mod tests { fn test_size() { assert_size!(Option_, 24); assert_size!(FieldType, 1); - assert_size!(Field, 132); + assert_size!(Field, 140); assert_size!(DataFormType, 1); assert_size!(DataForm, 52); } diff --git a/parsers/src/iq.rs b/parsers/src/iq.rs index 54b1ba9c..cb53f38b 100644 --- a/parsers/src/iq.rs +++ b/parsers/src/iq.rs @@ -233,7 +233,7 @@ mod tests { #[test] fn test_size() { assert_size!(IqType, 104); - assert_size!(Iq, 168); + assert_size!(Iq, 148); } #[cfg(target_pointer_width = "64")] diff --git a/parsers/src/stanza_id.rs b/parsers/src/stanza_id.rs index 0e0bc359..3f304132 100644 --- a/parsers/src/stanza_id.rs +++ b/parsers/src/stanza_id.rs @@ -48,7 +48,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(StanzaId, 24); + assert_size!(StanzaId, 28); assert_size!(OriginId, 12); }