ecaps2, jingle_s5b: Replace drain() with into_iter().

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-26 00:04:20 +01:00
commit 4b3ced042e
2 changed files with 5 additions and 5 deletions

View file

@ -49,10 +49,10 @@ impl TryFrom<Element> for ECaps2 {
}
impl From<ECaps2> for Element {
fn from(mut ecaps2: ECaps2) -> Element {
fn from(ecaps2: ECaps2) -> Element {
Element::builder("c")
.ns(ns::ECAPS2)
.append(ecaps2.hashes.drain(..)
.append(ecaps2.hashes.into_iter()
.map(Element::from)
.collect::<Vec<_>>())
.build()