bad match_ref_pats
suggestion.
#4834
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
In this line of this file of this commit, clippy says "you don't need to add
&
to all patterns", but because the&
is actually changing the type of the binding, if you take off that&
then the type going intopng_u16
become wrong and the code doesn't compile.The text was updated successfully, but these errors were encountered: