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 old structure of breaking on each portion of the chain seems more readable than breaking as late as possible - in particular for the second example.
The text was updated successfully, but these errors were encountered:
This is discussed in rust-lang/style-team#66 and I think the implementation matches the result of that discussion. There is an option for the maximum length of a chain that we will put on one line and we might want to make that shorter, or possibly we need to ensure that it applies to the chain prefix when only the last item is multi-lined. (I agree that the first two examples looked better before and we should try and preserve that. The third example I'm not sure about).
Here are a couple of diffs we found when upgrading from rustfmt 0.8 to 0.9:
The old structure of breaking on each portion of the chain seems more readable than breaking as late as possible - in particular for the second example.
The text was updated successfully, but these errors were encountered: