Commit cf53710
committed
Auto merge of rust-lang#8370 - smoelius:master, r=flip1995
Format `if_chain` invocations in clippy_utils
Not realizing it was [already obsolete](rust-lang/rust-clippy#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.
---
changelog: none4 files changed
+25
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
| 287 | + | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
296 | 295 | | |
297 | 296 | | |
298 | 297 | | |
299 | | - | |
300 | | - | |
| 298 | + | |
301 | 299 | | |
302 | | - | |
303 | | - | |
| 300 | + | |
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
| |||
456 | 453 | | |
457 | 454 | | |
458 | 455 | | |
459 | | - | |
| 456 | + | |
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
607 | 609 | | |
608 | 610 | | |
609 | 611 | | |
| |||
713 | 715 | | |
714 | 716 | | |
715 | 717 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
| 718 | + | |
722 | 719 | | |
723 | 720 | | |
724 | 721 | | |
| |||
1553 | 1550 | | |
1554 | 1551 | | |
1555 | 1552 | | |
1556 | | - | |
1557 | | - | |
| 1553 | + | |
1558 | 1554 | | |
1559 | 1555 | | |
1560 | 1556 | | |
| |||
1644 | 1640 | | |
1645 | 1641 | | |
1646 | 1642 | | |
1647 | | - | |
| 1643 | + | |
1648 | 1644 | | |
1649 | 1645 | | |
1650 | 1646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| |||
0 commit comments