close #12157 `needless_return` sometimes makes incorrect suggestions by omitting necessary enclosing parentheses. This PR resolves the issue by using `clippy_utils::sugg::Sugg`. changelog: [`needless_return`]: now makes correct suggestions which require enclosing parentheses |
||
|---|---|---|
| .. | ||
| test_utils | ||
| ui | ||
| ui-cargo | ||
| ui-internal | ||
| ui-toml | ||
| workspace_test | ||
| check-fmt.rs | ||
| clippy.toml | ||
| compile-test.rs | ||
| config-metadata.rs | ||
| dogfood.rs | ||
| headers.rs | ||
| integration.rs | ||
| lint_message_convention.rs | ||
| missing-test-files.rs | ||
| versioncheck.rs | ||
| workspace.rs | ||