From 320d6e27c23dd93207507e69b67cbfd536d6750d Mon Sep 17 00:00:00 2001 From: Werner Kroneman Date: Fri, 8 Dec 2023 20:02:52 +0100 Subject: [PATCH] Ran cargo fmt --- xmpp/src/lib.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index ad6db8e..6054e6a 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -255,13 +255,16 @@ impl Agent { /// * `room_jid`: The JID of the room to leave, including the nickname. /// * `lang`: The language of the status message. /// * `status`: The status message to send. - pub async fn leave_room(&mut self, room_jid: FullJid, lang: impl Into, status: impl Into) { - + pub async fn leave_room( + &mut self, + room_jid: FullJid, + lang: impl Into, + status: impl Into, + ) { // XEP-0054 specifies that, to leave a room, the client must send a presence stanza // with type="unavailable". - let mut presence = - Presence::new(PresenceType::Unavailable).with_to(room_jid); + let mut presence = Presence::new(PresenceType::Unavailable).with_to(room_jid); // Optionally, the client may include a status message in the presence stanza. // TODO: Should this be optional? The XEP says "MAY", but the method signature requires the arguments.