parsers: rustfmt

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-04-02 22:45:20 +02:00
commit fd158d9a08
12 changed files with 114 additions and 101 deletions

View file

@ -324,8 +324,10 @@ impl From<Presence> for Element {
.append_all(if presence.priority == 0 {
None
} else {
Some(Element::builder("priority", ns::DEFAULT_NS)
.append(format!("{}", presence.priority)))
Some(
Element::builder("priority", ns::DEFAULT_NS)
.append(format!("{}", presence.priority)),
)
})
.append_all(presence.payloads.into_iter())
.build()