Skip to content

Commit

Permalink
Add default to MinionTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Nov 4, 2024
1 parent 025c206 commit 464c867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsysinspect/src/proto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl MinionMessage {
}

/// Minion target
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct MinionTarget {
/// List of minion Ids
id: Vec<String>,
Expand All @@ -83,7 +83,7 @@ pub struct MinionTarget {

impl MinionTarget {
pub fn new() -> MinionTarget {
MinionTarget { id: vec![], traits: HashMap::default(), hostnames: vec![] }
MinionTarget::default()
}

/// Add target id
Expand Down

0 comments on commit 464c867

Please sign in to comment.