From 6e6aa8f39eba46b4100bb98dff063daa17810184 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Tue, 7 Feb 2023 17:57:28 +0100 Subject: [PATCH] Don't use `impl IntoResponse` in readme --- axum/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/README.md b/axum/README.md index 407b81e8..08487807 100644 --- a/axum/README.md +++ b/axum/README.md @@ -66,7 +66,7 @@ async fn create_user( // this argument tells axum to parse the request body // as JSON into a `CreateUser` type Json(payload): Json, -) -> impl IntoResponse { +) -> (StatusCode, Json) { // insert your application logic here let user = User { id: 1337,