From 7038244a7d416aebe5ed832e25cbf43c4fbcc0b3 Mon Sep 17 00:00:00 2001 From: Roms1383 Date: Tue, 16 Jul 2024 00:25:00 +0700 Subject: [PATCH] fix: error example --- actix-web/examples/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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