fmt(customize-extractor-error): missing fmt

This commit is contained in:
Altair-Bueno
2022-08-15 20:04:09 +02:00
parent d61d305ffe
commit f9200bf4b9
@@ -5,10 +5,8 @@
//! ``` //! ```
use axum::{ use axum::{
extract::rejection::JsonRejection, extract::rejection::JsonRejection, http::StatusCode, response::IntoResponse, routing::post,
http::StatusCode, Json, Router,
response::IntoResponse,
routing::post, Json, Router,
}; };
use axum_extra::extract::WithRejection; use axum_extra::extract::WithRejection;
use serde::Deserialize; use serde::Deserialize;
@@ -42,7 +40,7 @@ async fn handler(
// `WithRejection` will extract `Json<User>` from the request. If the // `WithRejection` will extract `Json<User>` from the request. If the
// extraction fails, a `MyRejection` will be created from `JsonResponse` and // extraction fails, a `MyRejection` will be created from `JsonResponse` and
// returned to the client // returned to the client
WithRejection(Json(user), _): WithRejection<Json<User>, MyRejection> WithRejection(Json(user), _): WithRejection<Json<User>, MyRejection>,
) { ) {
dbg!(&user); dbg!(&user);
} }