diff options
| author | Alex Macleod <alex@macleod.io> | 2025-01-07 13:37:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-07 13:37:52 +0000 |
| commit | b7b69b135447dd2d4e3747880fd9998e6514f70f (patch) | |
| tree | fb1f3533549f00f4eec421b51fc7e9a5b2f5c902 /compiler/rustc_pattern_analysis | |
| parent | 4ef917796aaba3921661c5f503acb482f21c4a33 (diff) | |
| parent | 9c46e1173f9bb6dbf1cd2bded405d90771b28471 (diff) | |
| download | rust-b7b69b135447dd2d4e3747880fd9998e6514f70f.tar.gz rust-b7b69b135447dd2d4e3747880fd9998e6514f70f.zip | |
Remove unneeded parentheses in `unnecessary_map_or` lint output (#13932)
When the expression is transformed into an equality, parentheses are needed only if the resulting equality is used: - as a receiver in a method call - as part of a binary or unary expression - as part of a cast In other cases, which will be the majority, no parentheses are required. This makes the lint suggestions cleaner. changelog: `none`
Diffstat (limited to 'compiler/rustc_pattern_analysis')
0 files changed, 0 insertions, 0 deletions
