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
Are they really equivalent? MyRecord { ..value } moves value unless it implements Copy, so wouldn't MyRecord { ..value } be equivalent to value, and not value.clone()?
What it does
If your update changes no fields, e.g.
MyRecord {..value}
then the update is providing very little value, andvalue
directly would be better.Lint Name
redundant_update
Category
style
Advantage
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: