-
Notifications
You must be signed in to change notification settings - Fork 123
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
allow custom format on item for Debug #279
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ModProg thanks! What is missing is a full set of tests to cover this feature.
@ModProg @JelteF also, it's a bit unclear how it should work with the item-level formatting attributes? #[derive(Debug)]
#[debug("{name}={value:?}")]
struct Arg {
#[debug("{name}!")]
name: String,
value: String
} What should happen here?
I'd vote for the option 1. |
I think option 1 seems good. |
while 1. is definitly easier, 2. looks reasonable as well. but we can do that later, as it's a non breaking change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ModProg at the moment, trait bounds for type parameters are being inferred incorrectly when top-level attribute comes into play. I've added tests covering those situations.
Somehow github is not showing them in this PR (but I see them on the branch on @ModProg their fork). I'm assuming the tests are not passing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JelteF could you make a |
Done |
Resolves #277
Synopsis
Solution
Checklist