`suspicious_else_formatting`: Don't warn if there is a comment between else and...
source link: https://github.com/rust-lang/rust-clippy/pull/10904
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Contributor
This PR fixes #10273
The idea is that if the only thing after else
and before {
is a comment, we will not warn because, probably, the line break was "made" by rustfmt.
changelog: [suspicious_else_formatting
]: Don't warn if the only thing between else
and curly bracket is a comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK