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
..
src redundant_pattern_match: clean-up (#15796) 2025-10-05 15:09:10 +00:00
Cargo.toml Upgrade toml to 0.9.7 and remove the serde feature. 2025-10-02 15:31:42 -04:00
README.md clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy. 2020-03-10 01:05:54 +01:00

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