Replace the use of `Sugg::ast()` which prevented combining `if` together when they contained comments by span manipulation. A new configuration option `lint_commented_code`, which is `true` by default, allows opting out from this behavior. If reviewed on GitHub, the second commit of this PR is best looked at side by side, with whitespace differences turned off. changelog: [`collapsible_if`]: lint more cases |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||