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

feat: make body::Sender and Body::channel private #2970

Merged

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Aug 29, 2022

Make body::Sender and Body::channel (currently named Recv::channel) private, and update the tests that relied on these types. As far as I can see there were only two affected tests, as well as the end_to_end benchmark which is currently disabled (#2930).

I ended up using #[allow(unused)] a few places in body after making the aforementioned types private, please let me know if you'd like me to take a different approach.

This closes #2962

 - update tests to work without these types
@seanmonstar seanmonstar merged commit d963e6a into hyperium:master Aug 29, 2022
@oddgrd oddgrd deleted the feat/privatize-body-sender-and-channel branch August 29, 2022 20:37
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.

Make body::Sender type and Body::channel() constructor private.
2 participants