austinjones / postage-rs

The feature-rich, portable async channel library
MIT License
252 stars 9 forks source link

Implement Debug for Sender & Receiver types #43

Closed woubuc closed 3 years ago

woubuc commented 3 years ago

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 commented 3 years ago

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