-
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
Format if_chain
invocations in clippy_utils
#8370
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
Thanks! This is an improvement of the formatting. Probably not necessary soon, once we switch to let_chains, but until we can make the move, I'm happy to merge this. @bors r+ |
📌 Commit e7922f7 has been approved by |
Format `if_chain` invocations in clippy_utils Not realizing it was [already obsolete](#8360), I built a [tool to format inside `if_chain` invocations](https://crates.io/crates/rustfmt_if_chain). This PR applies the tool to clippy_utils. (If you apply it to clippy_lints, the changes are extensive.) Anyway, I'm making it known here in case anyone wants to use it while `if-let` chain support is developed for `rustfmt`. (There could be a few Clippy PRs between now and then, and IMHO, the code looks better with the `if_chain` invocations formatted.) Cheers.
💔 Test failed - checks-action_test |
The changelog entry was missing. I added @bors retry |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Not realizing it was already obsolete, I built a tool to format inside
if_chain
invocations.This PR applies the tool to clippy_utils. (If you apply it to clippy_lints, the changes are extensive.)
Anyway, I'm making it known here in case anyone wants to use it while
if-let
chain support is developed forrustfmt
. (There could be a few Clippy PRs between now and then, and IMHO, the code looks better with theif_chain
invocations formatted.)Cheers.
changelog: none