Fix expected struct sizes for nightly optimizations (no more CI warnings)

This commit is contained in:
xmppftw xmppftw 2023-06-06 11:28:29 +02:00 committed by xmpp ftw
commit c8dcf5e7a7
6 changed files with 27 additions and 0 deletions

View file

@ -55,6 +55,9 @@ mod tests {
#[test]
fn test_size() {
assert_size!(JidPrepQuery, 24);
#[cfg(rustc_nightly)]
assert_size!(JidPrepResponse, 72);
#[cfg(not(rustc_nightly))]
assert_size!(JidPrepResponse, 80);
}