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

stream: change the visibility of stream adaptor structures to public #6657

Closed
wants to merge 1 commit into from
Closed

Conversation

sharpened-nacho
Copy link
Contributor

Added pub to all use declarations in stream_ext.rs, except for Collect as it should stay private, as stated in its doc.

Fixes: #6656

Motivation

The StreamExt trait provides the helpful method take, map, and the like on Streams. But the structures themselves (Take, Map, etc.) are not visible outside the crate, as they are not pub use in stream_ext.rs.

Solution

Added pub to all use declarations in stream_ext.rs, except for Collect as it should stay private, as stated in its doc.

Added pub to all use declarations in stream_ext.rs, except for Collect
as it should stay private, as stated in its doc.

Fixes: #6656
@sharpened-nacho
Copy link
Contributor Author

Looks like I need some time to understand the visibility error :/
Sorry for being bad at this whole process, learning :)

@Darksonn Darksonn added the A-tokio-stream Area: The tokio-stream crate label Jun 25, 2024
@Darksonn
Copy link
Contributor

You don't have to open a new PR if the build fails. You can push additional commits to an existing PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-stream Area: The tokio-stream crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Making the Stream adaptor structures public in tokio-stream
2 participants