parsers: cargo fmt the last commit on parsers

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-09-16 19:57:20 +02:00
parent 6eb25755a3
commit b6b0c5ee52
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -6,9 +6,9 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
use crate::ns;
use crate::presence::PresencePayload;
use crate::util::error::Error;
use crate::Element;
use crate::presence::PresencePayload;
use jid::FullJid;
use std::convert::TryFrom;
@ -676,8 +676,7 @@ mod tests {
let elem: Element = "<x xmlns='http://jabber.org/protocol/muc#user'/>"
.parse()
.unwrap();
let presence = Presence::new(PresenceType::None)
.with_payloads(vec![elem]);
let presence = Presence::new(PresenceType::None).with_payloads(vec![elem]);
assert_eq!(presence.payloads.len(), 1);
}
}