diff --git a/parsers/src/jingle.rs b/parsers/src/jingle.rs index a116cc79..b560e74c 100644 --- a/parsers/src/jingle.rs +++ b/parsers/src/jingle.rs @@ -703,11 +703,7 @@ 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!(Content, 432); assert_size!(Reason, 1); assert_size!(ReasonElement, 32); assert_size!(SessionId, 24); diff --git a/tokio-xmpp/Cargo.toml b/tokio-xmpp/Cargo.toml index 223356ed..0c2c688a 100644 --- a/tokio-xmpp/Cargo.toml +++ b/tokio-xmpp/Cargo.toml @@ -50,3 +50,6 @@ insecure-tcp = [] syntax-highlighting = ["syntect"] # Enable serde support in jid crate serde = [ "xmpp-parsers/serde" ] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(xmpprs_doc_build)'] }