From 769939be0a5d9b5d6f18ae48b3a2ac0cf108dd17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 12 Sep 2022 00:23:53 +0200 Subject: [PATCH] handlers: cargo fmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/handlers.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index ab87bce..86195ea 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -107,13 +107,14 @@ async fn handle_presence( rooms: &mut HashMap, ) -> Result<(), Error> { if presence.type_ == PresenceType::None { - let muc = presence - .payloads - .into_iter() - .try_for_each(|payload| match Muc::try_from(payload) { - Ok(muc) => ControlFlow::Break(muc), - _ => ControlFlow::Continue(()), - }); + let muc = + presence + .payloads + .into_iter() + .try_for_each(|payload| match Muc::try_from(payload) { + Ok(muc) => ControlFlow::Break(muc), + _ => ControlFlow::Continue(()), + }); // TODO: Handle presence probes, remove the return here. // TODO: check for features in the Muc element.