Fix fmt
This commit is contained in:
parent
8d246975d7
commit
34a87e22a8
6 changed files with 27 additions and 31 deletions
|
@ -83,14 +83,15 @@ mod tests {
|
|||
.unwrap();
|
||||
let message = Message::try_from(elem).unwrap();
|
||||
|
||||
let elem: Element = "<delay xmlns='urn:xmpp:delay' from='capulet.com' stamp='2002-09-10T23:08:25Z'/>"
|
||||
let elem: Element =
|
||||
"<delay xmlns='urn:xmpp:delay' from='capulet.com' stamp='2002-09-10T23:08:25Z'/>"
|
||||
.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();
|
||||
|
|
|
@ -699,7 +699,8 @@ mod tests {
|
|||
.unwrap();
|
||||
let actor = Actor::try_from(elem).unwrap();
|
||||
|
||||
let elem: Element = "<continue xmlns='http://jabber.org/protocol/muc#user' thread='foobar'/>"
|
||||
let elem: Element =
|
||||
"<continue xmlns='http://jabber.org/protocol/muc#user' thread='foobar'/>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let continue_ = Continue::try_from(elem).unwrap();
|
||||
|
|
|
@ -698,9 +698,7 @@ mod tests {
|
|||
.parse()
|
||||
.unwrap();
|
||||
|
||||
let elem: Element = "<x xmlns='jabber:x:data' type='submit'/>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let elem: Element = "<x xmlns='jabber:x:data' type='submit'/>".parse().unwrap();
|
||||
|
||||
let form = DataForm::try_from(elem).unwrap();
|
||||
|
||||
|
@ -720,15 +718,11 @@ mod tests {
|
|||
.parse()
|
||||
.unwrap();
|
||||
|
||||
let elem: Element = "<x xmlns='jabber:x:data' type='submit'/>"
|
||||
.parse()
|
||||
.unwrap();
|
||||
let elem: Element = "<x xmlns='jabber:x:data' type='submit'/>".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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue