diff --git a/xmpp-parsers/src/carbons.rs b/xmpp-parsers/src/carbons.rs index 07af9081..5ebbd528 100644 --- a/xmpp-parsers/src/carbons.rs +++ b/xmpp-parsers/src/carbons.rs @@ -137,7 +137,7 @@ mod tests { let forwarded = Forwarded::try_from(elem).unwrap(); let received = Received { - forwarded: forwarded, + forwarded: forwarded, }; let serialized: Element = received.into(); @@ -156,7 +156,7 @@ mod tests { let forwarded = Forwarded::try_from(elem).unwrap(); let sent = Sent { - forwarded: forwarded, + forwarded: forwarded, }; let serialized: Element = sent.into(); diff --git a/xmpp-parsers/src/forwarding.rs b/xmpp-parsers/src/forwarding.rs index 1b786ac1..c59e9d12 100644 --- a/xmpp-parsers/src/forwarding.rs +++ b/xmpp-parsers/src/forwarding.rs @@ -83,14 +83,15 @@ mod tests { .unwrap(); let message = Message::try_from(elem).unwrap(); - let elem: Element = "" - .parse() - .unwrap(); + let elem: Element = + "" + .parse() + .unwrap(); let delay = Delay::try_from(elem).unwrap(); let forwarded = Forwarded { delay: Some(delay), - stanza: Some(message) + stanza: Some(message), }; let serialized: Element = forwarded.into(); diff --git a/xmpp-parsers/src/mam.rs b/xmpp-parsers/src/mam.rs index dcfa2394..d1decdd8 100644 --- a/xmpp-parsers/src/mam.rs +++ b/xmpp-parsers/src/mam.rs @@ -426,9 +426,9 @@ mod tests { let forwarded = Forwarded::try_from(elem).unwrap(); let result = Result_ { - id: String::from("28482-98726-73623"), - queryid: Some(QueryId(String::from("f27"))), - forwarded: forwarded, + id: String::from("28482-98726-73623"), + queryid: Some(QueryId(String::from("f27"))), + forwarded: forwarded, }; let serialized: Element = result.into(); assert_eq!(serialized, reference); @@ -447,8 +447,8 @@ mod tests { let set = SetResult::try_from(elem).unwrap(); let fin = Fin { - set: set, - complete: Complete::default(), + set: set, + complete: Complete::default(), }; let serialized: Element = fin.into(); assert_eq!(serialized, reference); diff --git a/xmpp-parsers/src/muc/user.rs b/xmpp-parsers/src/muc/user.rs index d457b5fc..61f7f12c 100644 --- a/xmpp-parsers/src/muc/user.rs +++ b/xmpp-parsers/src/muc/user.rs @@ -695,18 +695,19 @@ mod tests { .unwrap(); let elem: Element = "" - .parse() - .unwrap(); + .parse() + .unwrap(); let actor = Actor::try_from(elem).unwrap(); - let elem: Element = "" - .parse() - .unwrap(); + let elem: Element = + "" + .parse() + .unwrap(); let continue_ = Continue::try_from(elem).unwrap(); let elem: Element = "foobar" - .parse() - .unwrap(); + .parse() + .unwrap(); let reason = Reason::try_from(elem).unwrap(); let item = Item { diff --git a/xmpp-parsers/src/pubsub/pubsub.rs b/xmpp-parsers/src/pubsub/pubsub.rs index 371dfc95..a07de8eb 100644 --- a/xmpp-parsers/src/pubsub/pubsub.rs +++ b/xmpp-parsers/src/pubsub/pubsub.rs @@ -698,9 +698,7 @@ mod tests { .parse() .unwrap(); - let elem: Element = "" - .parse() - .unwrap(); + let elem: Element = "".parse().unwrap(); let form = DataForm::try_from(elem).unwrap(); @@ -720,15 +718,11 @@ mod tests { .parse() .unwrap(); - let elem: Element = "" - .parse() - .unwrap(); + let elem: Element = "".parse().unwrap(); let form = DataForm::try_from(elem).unwrap(); - let options = PublishOptions { - form: Some(form), - }; + let options = PublishOptions { form: Some(form) }; let serialized: Element = options.into(); assert_eq!(serialized, reference); } diff --git a/xmpp-parsers/src/sm.rs b/xmpp-parsers/src/sm.rs index e32cd839..315761e7 100644 --- a/xmpp-parsers/src/sm.rs +++ b/xmpp-parsers/src/sm.rs @@ -232,14 +232,14 @@ mod tests { .unwrap(); let elem: Element = "" - .parse() - .unwrap(); + .parse() + .unwrap(); let error = DefinedCondition::try_from(elem).unwrap(); let failed = Failed { - h: None, - error: Some(error), + h: None, + error: Some(error), }; let serialized: Element = failed.into(); assert_eq!(serialized, reference);