ecaps2, forwarding, jingle_s5b, mam: Replace complex into expressions with .map(Element::from).

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-20 20:52:25 +01:00
commit cc563b46d2
4 changed files with 8 additions and 8 deletions

View file

@ -52,8 +52,8 @@ impl From<ECaps2> for Element {
Element::builder("c")
.ns(ns::ECAPS2)
.append(ecaps2.hashes.drain(..)
.map(|hash| hash.into())
.collect::<Vec<Element>>())
.map(Element::from)
.collect::<Vec<_>>())
.build()
}
}