Skip to content

Commit 3afb5a3

Browse files
feat!: make runner mode argument mandatory
1 parent 76dd32e commit 3afb5a3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/run/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub struct RunArgs {
8888
pub working_directory: Option<String>,
8989

9090
/// The mode to run the benchmarks in.
91-
#[arg(long, default_value_t, value_enum, env = "CODSPEED_RUNNER_MODE")]
91+
#[arg(long, value_enum, env = "CODSPEED_RUNNER_MODE")]
9292
pub mode: RunnerMode,
9393

9494
/// Comma-separated list of instruments to enable. Possible values: mongodb.
@@ -133,10 +133,9 @@ pub struct RunArgs {
133133
pub command: Vec<String>,
134134
}
135135

136-
#[derive(ValueEnum, Clone, Default, Debug, Serialize)]
136+
#[derive(ValueEnum, Clone, Debug, Serialize)]
137137
#[serde(rename_all = "lowercase")]
138138
pub enum RunnerMode {
139-
#[default]
140139
Instrumentation,
141140
Walltime,
142141
}

0 commit comments

Comments
 (0)