Introduce Response type alias as a shorthand for Response<BoxBody> (#590)

* Introduce `Response` type alias as a shorthand

* Don't re-export `Response` at the crate root
This commit is contained in:
Kai Jewson
2021-12-05 19:16:46 +01:00
committed by GitHub
parent cbb34869d8
commit dfb06e721c
41 changed files with 210 additions and 237 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
use axum::{
body::BoxBody,
http::Response,
response::IntoResponse,
response::{IntoResponse, Response},
};
use axum_debug::debug_handler;
@@ -15,7 +14,7 @@ impl A {
}
impl IntoResponse for A {
fn into_response(self) -> Response<BoxBody> {
fn into_response(self) -> Response {
todo!()
}
}