mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
chore: fix Rust 1.91.0 lint for derivable Default
This commit is contained in:
@@ -88,9 +88,10 @@ use crate::tools::{SystemTime, duration_to_str, time};
|
||||
use crate::{location, stats};
|
||||
|
||||
/// Ephemeral timer value.
|
||||
#[derive(Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize)]
|
||||
#[derive(Debug, PartialEq, Eq, Copy, Clone, Serialize, Deserialize, Default)]
|
||||
pub enum Timer {
|
||||
/// Timer is disabled.
|
||||
#[default]
|
||||
Disabled,
|
||||
|
||||
/// Timer is enabled.
|
||||
@@ -125,12 +126,6 @@ impl Timer {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Timer {
|
||||
fn default() -> Self {
|
||||
Self::Disabled
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Timer {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{}", self.to_u32())
|
||||
|
||||
Reference in New Issue
Block a user