mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
parsers: cargo fmt the last commit on parsers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
6eb25755a3
commit
b6b0c5ee52
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue