Skip to content

Commit

Permalink
derive Default for Deco
Browse files Browse the repository at this point in the history
  • Loading branch information
KG32 committed Aug 23, 2024
1 parent b9ca719 commit 1341448
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/common/deco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct DecoStage {
pub gas: Gas,
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct Deco {
deco_stages: Vec<DecoStage>,
tts_seconds: Seconds,
Expand All @@ -50,16 +50,6 @@ pub struct DecoRuntime {
pub tts_delta_at_5: MinutesSigned,
}

impl Default for Deco {
fn default() -> Self {
Self {
deco_stages: Vec::new(),
tts_seconds: 0,
sim: false
}
}
}

impl Sim for Deco {
fn fork(&self) -> Self {
Self {
Expand Down

0 comments on commit 1341448

Please sign in to comment.