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

Make publicly exported types implement Debug trait #141

Closed
wants to merge 2 commits into from

Conversation

d-e-s-o
Copy link
Contributor

@d-e-s-o d-e-s-o commented Apr 20, 2018

It seems to have become common practice for publicly exported types in a
library to implement the Debug trait. Doing so potentially simplifies
trouble shooting in client code directly but it also is a requirement in
case said client code embeds such objects and wants the wrappers to
implement this trait. For a deeper discussion of this topic please refer
to rust-lang/rust#32054

To that end, this change adjust all publicly exported types to derive
from Debug. It also adds a crate wide lint enforcing this constraint.

It seems to have become common practice for publicly exported types in a
library to implement the Debug trait. Doing so potentially simplifies
trouble shooting in client code directly but it also is a requirement in
case said client code embeds such objects and wants the wrappers to
implement this trait. For a deeper discussion of this topic please refer
to rust-lang/rust#32054

To that end, this change adjust all publicly exported types to derive
from Debug. It also adds a crate wide lint enforcing this constraint.
@d-e-s-o
Copy link
Contributor Author

d-e-s-o commented May 11, 2018

Any comments on this pull request?

@Mange
Copy link

Mange commented Aug 31, 2018

This would have helped me a lot before when I had to debug my theming configuration code.

@jackpot51
Copy link
Member

Please submit merge requests here: https://gitlab.redox-os.org/redox-os/termion

@jackpot51 jackpot51 closed this Jan 28, 2019
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.

3 participants