Remove the associated Body type on IntoResponse (#571)

This commit is contained in:
Kai Jewson
2021-11-28 18:52:18 +01:00
committed by GitHub
parent decdd4c948
commit 2b6dba49cb
25 changed files with 171 additions and 358 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
use axum::{
async_trait,
body::{Bytes, Full},
body::BoxBody,
extract::{FromRequest, Path, RequestParts},
http::{Response, StatusCode},
response::IntoResponse,
@@ -51,7 +51,7 @@ impl<B> FromRequest<B> for Version
where
B: Send,
{
type Rejection = Response<Full<Bytes>>;
type Rejection = Response<BoxBody>;
async fn from_request(req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
let params = Path::<HashMap<String, String>>::from_request(req)