mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
Derive Default where possible
This commit is contained in:
@@ -131,10 +131,11 @@ pub(crate) enum MailinglistType {
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Debug, Display, Clone, Copy, PartialEq, Eq, FromPrimitive, ToPrimitive, ToSql, FromSql,
|
||||
Debug, Default, Display, Clone, Copy, PartialEq, Eq, FromPrimitive, ToPrimitive, ToSql, FromSql,
|
||||
)]
|
||||
#[repr(u32)]
|
||||
pub enum SystemMessage {
|
||||
#[default]
|
||||
Unknown = 0,
|
||||
|
||||
/// Group name changed.
|
||||
@@ -177,12 +178,6 @@ pub enum SystemMessage {
|
||||
WebxdcInfoMessage = 32,
|
||||
}
|
||||
|
||||
impl Default for SystemMessage {
|
||||
fn default() -> Self {
|
||||
SystemMessage::Unknown
|
||||
}
|
||||
}
|
||||
|
||||
const MIME_AC_SETUP_FILE: &str = "application/autocrypt-setup";
|
||||
|
||||
impl MimeMessage {
|
||||
|
||||
Reference in New Issue
Block a user