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

This commit is contained in:
David Pedersen
2023-09-16 22:24:00 +02:00
parent 3407de82c8
commit b3e3f42e24
3 changed files with 14 additions and 2 deletions
+10
View File
@@ -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)]