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
while this can technically be written as a single expression such as
let(thing1, thing2) = if things.is_empty(){(None,None)}else{(Some(stuff1(things)),Some(stuff2(things)),)}
most folks I've polled agree that it's way harder to read, since the binding is so far removed from the expression its receiving. This lint makes complete sense if there's only a single assignment, but I think it should ignore multiple assignments in the same if statement
The text was updated successfully, but these errors were encountered:
The following code triggers this lint:
while this can technically be written as a single expression such as
most folks I've polled agree that it's way harder to read, since the binding is so far removed from the expression its receiving. This lint makes complete sense if there's only a single assignment, but I think it should ignore multiple assignments in the same if statement
The text was updated successfully, but these errors were encountered: