Skip to content

Commit

Permalink
fix: Adjust for thiserror 2.0
Browse files Browse the repository at this point in the history
See dtolnay/thiserror#354

Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat committed Nov 12, 2024
1 parent a88f3b9 commit 3f51da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firecracker/src/api_server/parsed_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub(crate) enum RequestError {
#[error("API Resource IDs can only contain alphanumeric characters and underscores.")]
InvalidID,
// The HTTP method & request path combination is not valid.
#[error("Invalid request method and/or path: {} {0}.", .1.to_str())]
#[error("Invalid request method and/or path: {} {}.", .1.to_str(), .0)]
InvalidPathMethod(String, Method),
// An error occurred when deserializing the json body of a request.
#[error("An error occurred when deserializing the json body of a request: {0}.")]
Expand Down

0 comments on commit 3f51da2

Please sign in to comment.