Files
rust/clippy_lints
Alex Macleod 2a9eb78c0e redundant_pattern_match: clean-up (#15796)
- cast `&[Arm]` to `&[Arm; 2]` early on to hopefully avoid bounds checks
- use `if let [pattern] = X { .. }` instead of `if let patterns = X {
let pattern = patterns[0]; .. }`
- use `Symbol`s instead of `&str`s
- reduce indentation

Diff best viewed with whitespace ignored

changelog: none
2025-10-05 15:09:10 +00:00
..

This crate contains Clippy lints. For the main crate, check GitHub.