Skip to content

Commit

Permalink
just derive Default
Browse files Browse the repository at this point in the history
Signed-off-by: keisku <[email protected]>
  • Loading branch information
keisku committed Jul 1, 2024
1 parent 9412a02 commit 73b3cf1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/runtime/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,9 @@ impl Default for LinuxSchedulerFlag {
}
}

#[derive(Builder, Clone, Debug, Deserialize, Getters, Setters, Eq, PartialEq, Serialize)]
#[derive(
Builder, Clone, Debug, Default, Deserialize, Getters, Setters, Eq, PartialEq, Serialize,
)]
#[builder(
default,
pattern = "owned",
Expand All @@ -580,12 +582,3 @@ pub struct ExecCPUAffinity {
/// the container's default CPU affinity, as defined by cpu.cpus property, is used.
cpu_affinity_final: Option<String>,
}

impl Default for ExecCPUAffinity {
fn default() -> Self {
Self {
cpu_affinity_initial: None,
cpu_affinity_final: None,
}
}
}

0 comments on commit 73b3cf1

Please sign in to comment.