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 #2

Merged
merged 1 commit into from
Feb 10, 2019

Commits on Feb 10, 2019

  1. Make publicly exported types implement Debug trait

    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 committed Feb 10, 2019
    Configuration menu
    Copy the full SHA
    15c97fc View commit details
    Browse the repository at this point in the history