mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Remove the associated Body type on IntoResponse (#571)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use axum::{
|
||||
body::{Bytes, Full},
|
||||
body::BoxBody,
|
||||
http::Response,
|
||||
response::IntoResponse,
|
||||
};
|
||||
@@ -16,10 +16,7 @@ impl A {
|
||||
}
|
||||
|
||||
impl IntoResponse for A {
|
||||
type Body = Full<Bytes>;
|
||||
type BodyError = Infallible;
|
||||
|
||||
fn into_response(self) -> Response<Self::Body> {
|
||||
fn into_response(self) -> Response<BoxBody> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user