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
The above code generates this warning with a suggestion:
Note how the new code uses <stripped> instead of a real variable name. This might be a bit confusing, especially to the new users. I propose to add a bit more extra logic for this common case:
if the result is assigned to a new variable, use that binding's name directly in the Some expression
When the manually stripped entity receives a name as the first use
through a simple `let` statement, this name can be used in the generated
`if let Some(…)` expression instead of a placeholder.
Fix#14183
changelog: [`manual_strip`]: reuse existing identifier in suggestion
when possible
Uh oh!
There was an error while loading. Please reload this page.
The above code generates this warning with a suggestion:
Note how the new code uses
<stripped>
instead of a real variable name. This might be a bit confusing, especially to the new users. I propose to add a bit more extra logic for this common case:Some
expressionThis will modify the suggestion from
to this
The text was updated successfully, but these errors were encountered: