ecaps2, jingle_s5b: Replace drain() with into_iter().
This commit is contained in:
parent
7511ca46c5
commit
4b3ced042e
2 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue