Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement IntoResponse for (Parts | Request<()>, $(impl IntoResponseParts)+, impl IntoResponse) #980

Merged
merged 7 commits into from
Apr 29, 2022

Conversation

davidpdrsn
Copy link
Member

Fixes #979

@davidpdrsn davidpdrsn changed the title More into response impls Implement IntoResponse for (Parts | Request<()>, $(impl IntoResponseParts)+, impl IntoResponse) Apr 29, 2022
@davidpdrsn davidpdrsn enabled auto-merge (squash) April 29, 2022 17:36
$( $ty: IntoResponseParts, )*
R: IntoResponse,
{
fn into_response(self) -> Response {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this implementation so much more complicated than the one for (http::response::Parts, R)? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've simplified it a bit

@davidpdrsn davidpdrsn requested a review from jplatte April 29, 2022 18:33
@davidpdrsn davidpdrsn merged commit 8dd6070 into main Apr 29, 2022
@davidpdrsn davidpdrsn deleted the more-into-response-impls branch April 29, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement IntoResponse for (Parts | Request<()>, $(impl IntoResponseParts)+, impl IntoResponse)
2 participants