diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index cfe4d9e..034db7f 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) } _ => (),