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

client: make with_http_client() generic #238

Merged

Conversation

Fishrock123
Copy link
Member

@Fishrock123 Fishrock123 commented Sep 24, 2020

This avoids leaking out the storage underneath.

Internally we require a function like the original though, due to very confusing & indirect lifetime requirements.

I didn't like the api here to begin with, so this seems very reasonable to get in to 2.0

@Fishrock123 Fishrock123 added this to the 2.0 milestone Sep 24, 2020
This avoids leaking out the storage underneath.

Internally we require a function like the original though, due to very confusing & indirect lifetime requirements.
Copy link
Member

@jbr jbr left a comment

Choose a reason for hiding this comment

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

Looks like an improvement to me!

@Fishrock123 Fishrock123 merged commit 1ea7fbb into http-rs:main Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants