Implement IntoResponse for (R,) where R: IntoResponse (#2143)

This commit is contained in:
David Pedersen
2023-08-03 18:15:06 +00:00
committed by GitHub
parent 432289dd04
commit cc611b8b24
3 changed files with 13 additions and 1 deletions
+10
View File
@@ -398,6 +398,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)]