diff --git a/src/message.rs b/src/message.rs index 8915dda1b..9e37a962d 100644 --- a/src/message.rs +++ b/src/message.rs @@ -47,10 +47,7 @@ impl MsgId { /// /// This kind of message ID can not be used for real messages. pub fn is_special(self) -> bool { - match self.0 { - 0..=DC_MSG_ID_LAST_SPECIAL => true, - _ => false, - } + self.0 <= DC_MSG_ID_LAST_SPECIAL } /// Whether the message ID is unset.