Derive Default implementations wherever possible
This commit is contained in:
parent
f53bee4225
commit
54239c55ae
3 changed files with 10 additions and 21 deletions
|
|
@ -285,18 +285,13 @@ struct Task {
|
|||
state: TaskState,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub enum TaskState {
|
||||
#[default]
|
||||
Idle,
|
||||
Editing,
|
||||
}
|
||||
|
||||
impl Default for TaskState {
|
||||
fn default() -> Self {
|
||||
Self::Idle
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum TaskMessage {
|
||||
Completed(bool),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue