mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
message: Avoid identical match branches.
This commit is contained in:
parent
f18043231c
commit
e52817e5cd
1 changed files with 7 additions and 7 deletions
|
@ -46,15 +46,15 @@ impl<'a> TryFrom<&'a Element> for MessagePayload {
|
||||||
("error", ns::JABBER_CLIENT) => MessagePayload::StanzaError(StanzaError::try_from(elem)?),
|
("error", ns::JABBER_CLIENT) => MessagePayload::StanzaError(StanzaError::try_from(elem)?),
|
||||||
|
|
||||||
// XEP-0085
|
// XEP-0085
|
||||||
("active", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
("active", ns::CHATSTATES)
|
||||||
("inactive", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
| ("inactive", ns::CHATSTATES)
|
||||||
("composing", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
| ("composing", ns::CHATSTATES)
|
||||||
("paused", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
| ("paused", ns::CHATSTATES)
|
||||||
("gone", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
| ("gone", ns::CHATSTATES) => MessagePayload::ChatState(ChatState::try_from(elem)?),
|
||||||
|
|
||||||
// XEP-0184
|
// XEP-0184
|
||||||
("request", ns::RECEIPTS) => MessagePayload::Receipt(Receipt::try_from(elem)?),
|
("request", ns::RECEIPTS)
|
||||||
("received", ns::RECEIPTS) => MessagePayload::Receipt(Receipt::try_from(elem)?),
|
| ("received", ns::RECEIPTS) => MessagePayload::Receipt(Receipt::try_from(elem)?),
|
||||||
|
|
||||||
// XEP-0203
|
// XEP-0203
|
||||||
("delay", ns::DELAY) => MessagePayload::Delay(Delay::try_from(elem)?),
|
("delay", ns::DELAY) => MessagePayload::Delay(Delay::try_from(elem)?),
|
||||||
|
|
Loading…
Reference in a new issue