This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit be8fd8b
committed
Streamline
- The early return can be right at the top.
- The control flow is simplified with `if let`.
- The `collect` isn't necessary.
- The "Unconditionally" comment is erroneously duplicated from
`check_attr_crate_type`, and can be removed.collect_crate_types.1 parent 95b0088 commit be8fd8b
1 file changed
+7
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 485 | | |
501 | 486 | | |
502 | 487 | | |
| |||
510 | 495 | | |
511 | 496 | | |
512 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
513 | 505 | | |
514 | 506 | | |
515 | 507 | | |
| |||
0 commit comments