-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Formatting lints for =@
and else if
s
#720
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
For `@` in {`*`, `!`, `-`}.
} | ||
|
||
fn constant_not(o: Constant) -> Option<Constant> { | ||
use syntax::ast::LitIntType::*; |
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.
Good cleanup. 👍
Formatting lints for `=@` and `else if`s
That was fast. 😄 @mcarton I'd like to have you writing some more challenging lints and leave the easy ones to new contributors. OK? |
There are plenty of easy lints left, I won’t implement them all, promised 😜. |
😄 OK then. |
Yeah, I was considering doing a sweep of a bunch of easy bugs too. It's good to have them, but 100+ open issues isn't too great :) |
This has always been one lint (added in #720), but the two cases are also quite distinct. changelog: Split `possible_missing_else` from `suspicious_else_formatting` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_SUMMARY_START --> ### Summary Notes - [Feature-freeze](#15317 (comment)) by [github-actions[bot]](https://github.com/github-actions[bot]) *Managed by `@rustbot`—see [help](https://forge.rust-lang.org/triagebot/note.html) for details* <!-- TRIAGEBOT_SUMMARY_END --> <!-- TRIAGEBOT_END -->
Fix #649. Fix #718.