From 216d9c4a8d21cdd972bb15e6b8531cbec2f090e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 27 Feb 2023 00:07:57 +0100 Subject: [PATCH] xmpp: rustfmt Message events commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- xmpp/src/lib.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index cfe4d9ea..034db7fc 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -342,20 +342,15 @@ impl Agent { full.resource, body.clone(), ), - Jid::Bare(bare) => Event::ServiceMessage( - message.id.clone(), - bare, - body.clone(), - ), + Jid::Bare(bare) => { + Event::ServiceMessage(message.id.clone(), bare, body.clone()) + } }; events.push(event) } MessageType::Chat | MessageType::Normal => { - let event = Event::ChatMessage( - message.id.clone(), - from.clone().into(), - body.clone(), - ); + let event = + Event::ChatMessage(message.id.clone(), from.clone().into(), body.clone()); events.push(event) } _ => (),