mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 18:13:36 +00:00
95396f61bc
`needless_late_init`: ignore `if let`, `let mut` and significant drops No longer lints `if let`, personal taste on this one is pretty split, so it probably shouldn't be warning by default. Fixes #8613 ```rust let x = if let Some(n) = y { n } else { 1 } ``` No longer lints `let mut`, things like the following are not uncommon and look fine as they are |
||
---|---|---|
.. | ||
infallible_destructuring_match.rs | ||
match_as_ref.rs | ||
match_bool.rs | ||
match_like_matches.rs | ||
match_ref_pats.rs | ||
match_same_arms.rs | ||
match_single_binding.rs | ||
match_wild_enum.rs | ||
match_wild_err_arm.rs | ||
mod.rs | ||
needless_match.rs | ||
overlapping_arms.rs | ||
redundant_pattern_match.rs | ||
rest_pat_in_fully_bound_struct.rs | ||
single_match.rs | ||
wild_in_or_pats.rs |