mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Implement IntoResponse for (R,) where R: IntoResponse (#2143)
This commit is contained in:
@@ -449,6 +449,16 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<R> IntoResponse for (R,)
|
||||
where
|
||||
R: IntoResponse,
|
||||
{
|
||||
fn into_response(self) -> Response {
|
||||
let (res,) = self;
|
||||
res.into_response()
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! impl_into_response {
|
||||
( $($ty:ident),* $(,)? ) => {
|
||||
#[allow(non_snake_case)]
|
||||
|
||||
Reference in New Issue
Block a user