iq, message: Remove useless clone on unknown element.
This commit is contained in:
parent
fbeeae5c64
commit
21b92621f0
2 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ impl TryFrom<Element> for MessagePayload {
|
|||
// XEP-0380
|
||||
("encryption", ns::EME) => MessagePayload::ExplicitMessageEncryption(ExplicitMessageEncryption::try_from(elem)?),
|
||||
|
||||
_ => MessagePayload::Unknown(elem.clone()),
|
||||
_ => MessagePayload::Unknown(elem),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue