Skip to content

Commit

Permalink
chore: bump derive more in dev-dependencies (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranger-ross authored Aug 10, 2024
1 parent 8bf6a68 commit 1bb2ac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ serde = { version = "1", features = ["derive"]}
serde_json = "1"
validator = { version = "0.18", features = ["derive"] }
garde = { version = "0.20", features = ["derive"] }
derive_more = "0.99"
derive_more = { version = "1", features = ["display"] }

[features]

Expand Down
2 changes: 1 addition & 1 deletion examples/garde_custom_error_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn example(Validated(Json(payload)): Validated<Json<Example>>) -> impl Res
}

#[derive(Debug, Serialize, Display)]
#[display(fmt = "My custom error. This is just an example from the derive_more crate")]
#[display("My custom error. This is just an example from the derive_more crate")]
struct CustomErrorResponse {
custom_message: String,
errors: Vec<String>,
Expand Down
2 changes: 1 addition & 1 deletion examples/validator_custom_error_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn example(Validated(Json(payload)): Validated<Json<Example>>) -> impl Res
}

#[derive(Debug, Serialize, Display)]
#[display(fmt = "My custom error. This is just an example from the derive_more crate")]
#[display("My custom error. This is just an example from the derive_more crate")]
struct CustomErrorResponse {
custom_message: String,
errors: Vec<String>,
Expand Down

0 comments on commit 1bb2ac0

Please sign in to comment.