diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-01-02 23:53:24 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-01-03 00:32:46 +0100 |
| commit | 9c46e1173f9bb6dbf1cd2bded405d90771b28471 (patch) | |
| tree | 8ba7e036eecb9708d24f0a92ebc47b3f2adcd7e5 /compiler/rustc_pattern_analysis/tests/complexity.rs | |
| parent | 631d9a2c5cb5136705c7003e3d7681457156addf (diff) | |
| download | rust-9c46e1173f9bb6dbf1cd2bded405d90771b28471.tar.gz rust-9c46e1173f9bb6dbf1cd2bded405d90771b28471.zip | |
Remove unneeded parentheses in `unnecessary_map_or` lint output
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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests/complexity.rs')
0 files changed, 0 insertions, 0 deletions
