8000 Implement Debug for Sender & Receiver types by woubuc · Pull Request #43 · austinjones/postage-rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement Debug for Sender & Receiver types #43

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

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

woubuc
Copy link
Contributor
@woubuc woubuc commented Apr 8, 2021

I noticed the types in this crate are missing a Debug implementation, but I need them to have one in order to use them in a struct that derives Debug. So I went ahead and added a basic implementation for the Sender and Receiver structs of each channel type.

I've opted for displaying them as empty structs since the internals of these channels also don't implement Debug (so a simple derive wasn't possible) and I think the internal implementation doesn't need to be exposed regardless.

@austinjones
Copy link
Owner

Sorry, it's taken me a bit to get to this. Looks great! Thanks for the PR!

@austinjones austinjones merged commit 90f93e6 into austinjones:main Apr 29, 2021
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
0