Cleanup a1ae45add8 a bit.
This commit is contained in:
parent
cdf80c8979
commit
ff77f6141f
18 changed files with 97 additions and 174 deletions
14
src/mam.rs
14
src/mam.rs
|
|
@ -171,17 +171,9 @@ fn serialise_jid_list(name: &str, jids: Vec<Jid>) -> ::std::option::IntoIter<Nod
|
|||
.append_all(
|
||||
jids.into_iter()
|
||||
.map(|jid|
|
||||
Node::Element(
|
||||
Element::builder("jid")
|
||||
.ns(ns::MAM)
|
||||
.append(Node::Text(String::from(jid)))
|
||||
.build()
|
||||
.into()
|
||||
)
|
||||
)
|
||||
.into_iter(),
|
||||
)
|
||||
.build()
|
||||
Element::builder("jid")
|
||||
.ns(ns::MAM)
|
||||
.append(String::from(jid))))
|
||||
.into(),
|
||||
).into_iter()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue