Skip to content

Commit

Permalink
add: Default for large message structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Oct 21, 2024
1 parent 92af798 commit c5a2697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pueue_lib/src/network/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub enum TaskSelection {
All,
}

#[derive(PartialEq, Eq, Clone, Deserialize, Serialize)]
#[derive(PartialEq, Eq, Clone, Default, Deserialize, Serialize)]
pub struct AddMessage {
pub command: String,
pub path: PathBuf,
Expand Down Expand Up @@ -183,7 +183,7 @@ pub struct RestartMessage {

impl_into_message!(RestartMessage, Message::Restart);

#[derive(PartialEq, Eq, Clone, Debug, Deserialize, Serialize)]
#[derive(PartialEq, Eq, Clone, Debug, Default, Deserialize, Serialize)]
pub struct TaskToRestart {
pub task_id: usize,
/// Restart the task with an updated command.
Expand Down Expand Up @@ -254,7 +254,7 @@ pub struct EditResponseMessage {

impl_into_message!(EditResponseMessage, Message::EditResponse);

#[derive(PartialEq, Eq, Clone, Debug, Deserialize, Serialize)]
#[derive(PartialEq, Eq, Clone, Debug, Default, Deserialize, Serialize)]
pub struct EditMessage {
pub task_id: usize,
pub command: Option<String>,
Expand Down

0 comments on commit c5a2697

Please sign in to comment.