Skip to content

Commit 3f51da2

Browse files
committed
fix: Adjust for thiserror 2.0
See dtolnay/thiserror#354 Signed-off-by: Patrick Roy <[email protected]>
1 parent a88f3b9 commit 3f51da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firecracker/src/api_server/parsed_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ pub(crate) enum RequestError {
276276
#[error("API Resource IDs can only contain alphanumeric characters and underscores.")]
277277
InvalidID,
278278
// The HTTP method & request path combination is not valid.
279-
#[error("Invalid request method and/or path: {} {0}.", .1.to_str())]
279+
#[error("Invalid request method and/or path: {} {}.", .1.to_str(), .0)]
280280
InvalidPathMethod(String, Method),
281281
// An error occurred when deserializing the json body of a request.
282282
#[error("An error occurred when deserializing the json body of a request: {0}.")]

0 commit comments

Comments
 (0)