Skip to content
Snippets Groups Projects

Make publicly exported types implement Debug trait

Open Daniel Müller requested to merge d-e-s-o/termion:topic/derive-from-debug into master

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 https://github.com/rust-lang/rust/pull/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.

Merge request reports

Pipeline #2761 passed

Pipeline passed for 3d624311 on d-e-s-o:topic/derive-from-debug

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading