-
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
Add check for assert_eq macros to unit_cmp lint #4613
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.
Thanks, only a NIT.
Co-Authored-By: Philipp Krones <hello@philkrones.com>
Is it fine to use Should I also update the description of the lint to say it applies to asserts too? |
An update of the description of the lint would be good. And adding more tests is never wrong :) |
Ok I will make changes to the description and the test. Also I just realized simply applying your suggestion through the github interface wasn't enough because I also need to update the .stderr 🤦♂️ |
Is there a way to preview the updated lint documentation? |
Kind of, but this isn't really necessary. But since you asked:
|
@flip1995 I think I'm done. Can you check if my changes to the doc is ok? |
Looks great, thank you! @bors r+ |
📌 Commit 5a0a2b3 has been approved by |
Add check for assert_eq macros to unit_cmp lint changelog: Add check for unit comparisons through `assert_eq!`, `debug_assert_eq!`, `assert_ne!` and `debug_assert_ne!` macros to unit_cmp lint. fixes #4481
☀️ Test successful - checks-travis, status-appveyor |
changelog: Add check for unit comparisons through
assert_eq!
,debug_assert_eq!
,assert_ne!
anddebug_assert_ne!
macros to unit_cmp lint.fixes #4481