-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Clean up span_lint in methods/mod.rs
#5084
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
Conversation
|
BTW: |
I think |
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! I wanted to do this every time I review something in the methods module.
lint/sugg/hint/... messages in rust always start lowercase and don't have punctuation at the end
|
Applied all your suggestions (applied them on my local since some suggestions break wording, GitHub's review suggestion isn't suitable for multiple lines, and need to update stderrs).
I think so too, I'll do it in another PR. |
|
Thanks! @bors r+ |
|
📌 Commit 4b133f2 has been approved by |
Clean up `span_lint` in `methods/mod.rs` Uses `span_help_and_lint` instead of `span_lint` and `span_lint_and_sugg` instead of `span_lint_and_then`. changelog: none
|
☀️ Test successful - checks-travis, status-appveyor |
Rename `span_{help, note}_and_lint` to `span_lint_and_*`
`span_*_and_lint` and `span_lint_and_*` make us confused. The order should be the same.
[context](#5084 (comment))
changelog: none
Uses
span_help_and_lintinstead ofspan_lintandspan_lint_and_sugginstead ofspan_lint_and_then.changelog: none