From b6b0c5ee525ab505fb2b12bf5c1c091ecaf4952d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 16 Sep 2022 19:57:20 +0200 Subject: [PATCH] parsers: cargo fmt the last commit on parsers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- parsers/src/muc/user.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parsers/src/muc/user.rs b/parsers/src/muc/user.rs index 7bd51804..668b4c47 100644 --- a/parsers/src/muc/user.rs +++ b/parsers/src/muc/user.rs @@ -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 = "" .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); } }