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

StreamMap: fix Default bound #3093

Merged
merged 1 commit into from Nov 3, 2020
Merged

Conversation

vorot93
Copy link
Member

@vorot93 vorot93 commented Nov 3, 2020

Right now StreamMap implements Default only if both the stream and the key do too. This doesn't make sense, but is enforced because of deriving. This PR replaces this with manual Default implementation that is an alias for StreamMap::new.

@vorot93 vorot93 added A-tokio Area: The main tokio crate M-stream Module: tokio/stream labels Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-stream Module: tokio/stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants