Suppress needless_late_init on if-let and long if/match expr #8613
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
According to the lint docs, the sole justification for this lint is to reduce repetitive code. Yes, the examples in the docs look better as suggested, but others don't.
Slightly wordy but clean code:
Shorter code, but first line contains two
=
tokens (ugly):It's easy to imagine worse examples:
Suggestion: suppress lint when first line of
if
/match
is long or includes anif let
binding.Lint Name
needless_late_init
Reproducer
No response
Version
No response
Additional Labels
No response
The text was updated successfully, but these errors were encountered: