Closed sharpened-nacho closed 3 months ago
Looks like I need some time to understand the visibility error :/ Sorry for being bad at this whole process, learning :)
You don't have to open a new PR if the build fails. You can push additional commits to an existing PRs.
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 methodtake
,map
, and the like onStream
s. But the structures themselves (Take
,Map
, etc.) are not visible outside the crate, as they are notpub use
instream_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.