Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RDruon committed Sep 16, 2024
1 parent 6c081a7 commit 77d6af0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lustrefs-exporter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,10 @@ async fn handle_error(error: BoxError) -> impl IntoResponse {
)
}

fn default_as_false() -> bool {
false
}

#[derive(Debug, Deserialize)]
struct Params {
// Only enable jobstats if "jobstats=true"
#[serde(default = "default_as_false")]
#[serde(default)]
jobstats: bool,
}

Expand Down

0 comments on commit 77d6af0

Please sign in to comment.