mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-12 01:40:41 +01:00
Comply with the formatter
This commit is contained in:
parent
64fb7329c1
commit
be7d83fd2b
2 changed files with 2 additions and 4 deletions
|
@ -26,7 +26,7 @@ pub struct Spoofable<E>(pub E);
|
||||||
impl<S, E> FromRequestParts<S> for Spoofable<E>
|
impl<S, E> FromRequestParts<S> for Spoofable<E>
|
||||||
where
|
where
|
||||||
E: spoof::FromSpoofableRequestParts<S>,
|
E: spoof::FromSpoofableRequestParts<S>,
|
||||||
S: Sync
|
S: Sync,
|
||||||
{
|
{
|
||||||
type Rejection = E::Rejection;
|
type Rejection = E::Rejection;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
//! Extractor that parses the scheme of a request.
|
//! Extractor that parses the scheme of a request.
|
||||||
//! See [`Scheme`] for more details.
|
//! See [`Scheme`] for more details.
|
||||||
|
|
||||||
use axum::
|
use axum::response::{IntoResponse, Response};
|
||||||
response::{IntoResponse, Response}
|
|
||||||
;
|
|
||||||
use http::{
|
use http::{
|
||||||
header::{HeaderMap, FORWARDED},
|
header::{HeaderMap, FORWARDED},
|
||||||
request::Parts,
|
request::Parts,
|
||||||
|
|
Loading…
Reference in a new issue