diff --git a/actix-web/examples/error.rs b/actix-web/examples/error.rs index 445652989..3227252c6 100644 --- a/actix-web/examples/error.rs +++ b/actix-web/examples/error.rs @@ -27,7 +27,7 @@ async fn optional_payload( } #[post("/mandatory")] -async fn mandatory_payload(qs: Query, payload: Json) -> String { +async fn mandatory_payload(qs: Query, payload: Json) -> String { format!( "you asked for the mandatory query params: {:#?} and mandatory body: {:#?}", qs, payload