mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
fmt(cargo-check): removed whitespaces
This commit is contained in:
@@ -5,16 +5,16 @@ use std::marker::PhantomData;
|
|||||||
use std::ops::{Deref, DerefMut};
|
use std::ops::{Deref, DerefMut};
|
||||||
|
|
||||||
/// Extractor for customizing extractor rejections
|
/// Extractor for customizing extractor rejections
|
||||||
///
|
///
|
||||||
/// `WithRejection` wraps another extractor and gives you the result. If the
|
/// `WithRejection` wraps another extractor and gives you the result. If the
|
||||||
/// extraction fails, the `Rejection` is transformed into `R` and returned as a
|
/// extraction fails, the `Rejection` is transformed into `R` and returned as a
|
||||||
/// response
|
/// response
|
||||||
///
|
///
|
||||||
/// `E` is expected to implement [`FromRequest`]
|
/// `E` is expected to implement [`FromRequest`]
|
||||||
///
|
///
|
||||||
/// `R` is expected to implement [`IntoResponse`] and [`From<E::Rejection>`]
|
/// `R` is expected to implement [`IntoResponse`] and [`From<E::Rejection>`]
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
@@ -48,9 +48,9 @@ use std::ops::{Deref, DerefMut};
|
|||||||
/// WithRejection(Json(Person), _): WithRejection<Json<Person>, MyRejection>
|
/// WithRejection(Json(Person), _): WithRejection<Json<Person>, MyRejection>
|
||||||
/// ) { /* ... */ }
|
/// ) { /* ... */ }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// For a full example see the [customize-extractor-error] example
|
/// For a full example see the [customize-extractor-error] example
|
||||||
///
|
///
|
||||||
/// [customize-extractor-error]: https://github.com/tokio-rs/axum/blob/main/examples/customize-extractor-error/src/main.rs
|
/// [customize-extractor-error]: https://github.com/tokio-rs/axum/blob/main/examples/customize-extractor-error/src/main.rs
|
||||||
/// [`FromRequest`]: axum::extract::FromRequest
|
/// [`FromRequest`]: axum::extract::FromRequest
|
||||||
/// [`IntoResponse`]: axum::response::IntoResponse
|
/// [`IntoResponse`]: axum::response::IntoResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user