-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint usage of Debug
-based formatting
#637
Conversation
Any comment on that one? |
Too much to look at from mobile; it'll have to wait until the afternoon. |
} | ||
} | ||
|
||
impl fmt::Display for Constant { |
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.
Is there a specific reason for removing this (apart from it using Debug formatting to write out Str
s)?
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.
It was used only once, only to print integers. After I refactored the loop lint to use const_eval
it wasn’t used anymore and seemed of little use, if the user wrote 6*7
in an expression, they must have a reason not to have written 42
, a snippet should always be used to print the original expression.
Apart from one question, looks good to me. |
Lint usage of `Debug`-based formatting
Thanks! |
Fix #634.
Ref #461.
Ref #442.