mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
ecaps2: Remove the last clone.
This commit is contained in:
parent
9bb65ea8fb
commit
b172a6e05c
1 changed files with 3 additions and 3 deletions
|
@ -48,11 +48,11 @@ impl TryFrom<Element> for ECaps2 {
|
|||
}
|
||||
|
||||
impl Into<Element> for ECaps2 {
|
||||
fn into(self) -> Element {
|
||||
fn into(mut self) -> Element {
|
||||
Element::builder("c")
|
||||
.ns(ns::ECAPS2)
|
||||
.append(self.hashes.iter()
|
||||
.map(|hash| hash.clone().into())
|
||||
.append(self.hashes.drain(..)
|
||||
.map(|hash| hash.into())
|
||||
.collect::<Vec<Element>>())
|
||||
.build()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue