From c25e87b04f26cb76b0f2107929e0913985f11c93 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 29 Oct 2020 18:39:48 +0100 Subject: [PATCH] xmpp-parsers: Fix the size tests on AArch64 and amd64 These two changes were caused by the HashMap implementation having been switched to hashbrown, and thus using less memory and being faster. --- xmpp-parsers/src/ibr.rs | 2 +- xmpp-parsers/src/xhtml.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmpp-parsers/src/ibr.rs b/xmpp-parsers/src/ibr.rs index ecc0836f..b0a2f859 100644 --- a/xmpp-parsers/src/ibr.rs +++ b/xmpp-parsers/src/ibr.rs @@ -126,7 +126,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(Query, 168); + assert_size!(Query, 160); } #[test] diff --git a/xmpp-parsers/src/xhtml.rs b/xmpp-parsers/src/xhtml.rs index 390cc997..fd0312f1 100644 --- a/xmpp-parsers/src/xhtml.rs +++ b/xmpp-parsers/src/xhtml.rs @@ -516,7 +516,7 @@ mod tests { #[cfg(target_pointer_width = "64")] #[test] fn test_size() { - assert_size!(XhtmlIm, 56); + assert_size!(XhtmlIm, 48); assert_size!(Child, 112); assert_size!(Tag, 104); }