You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #9938, clippy now correctly suggests the brackets, but fails to take into account the pattern it's replacing is binding names for further use.
With #10797, or patterns will work, but only with tuple struct patterns like Some(v) or Ok(Enum::Variant(hi, _)). With that PR, the missing part is struct Foo::Bar { hello } patterns, similar to #10424.
Summary
Similar to #9938, clippy now correctly suggests the brackets, but fails to take into account the pattern it's replacing is binding names for further use.
Reproducer
I tried this code:
I expected to see this suggested:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: