From f9200bf4b950a920d6a565d946221b2bd6ec7bcd Mon Sep 17 00:00:00 2001 From: Altair-Bueno <67512202+Altair-Bueno@users.noreply.github.com> Date: Mon, 15 Aug 2022 20:04:09 +0200 Subject: [PATCH] fmt(customize-extractor-error): missing fmt --- examples/customize-extractor-error/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/customize-extractor-error/src/main.rs b/examples/customize-extractor-error/src/main.rs index 48714974..76fee0a0 100644 --- a/examples/customize-extractor-error/src/main.rs +++ b/examples/customize-extractor-error/src/main.rs @@ -5,10 +5,8 @@ //! ``` use axum::{ - extract::rejection::JsonRejection, - http::StatusCode, - response::IntoResponse, - routing::post, Json, Router, + extract::rejection::JsonRejection, http::StatusCode, response::IntoResponse, routing::post, + Json, Router, }; use axum_extra::extract::WithRejection; use serde::Deserialize; @@ -42,7 +40,7 @@ async fn handler( // `WithRejection` will extract `Json` from the request. If the // extraction fails, a `MyRejection` will be created from `JsonResponse` and // returned to the client - WithRejection(Json(user), _): WithRejection, MyRejection> + WithRejection(Json(user), _): WithRejection, MyRejection>, ) { dbg!(&user); }