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
I believe the style guideline about multi-line chains should be revised to not treat keyword the same way as it treat fields or methods.
I subjectively think that it is much more readable to keep the .await on the same line as it's associated future, and I think that the 2nd following snippet is much more readable:
This was initially requested as a configuration option to rust fmt here: rust-lang/rustfmt#4425
but I suspect that the guideline about multiline chain was made before the await keyword was adopted and that the official style guide should probably account for this.
The text was updated successfully, but these errors were encountered:
Thanks for sharing your perspective, but I'm going to close. We're working on some things within rustfmt that'll give folks a bit more flexibility, including the ability to keep your awaits on the same line if you choose, but we aren't going to go about giving that flexibility by making a breaking change to the style specification as suggested here.
Uh oh!
There was an error while loading. Please reload this page.
I believe the style guideline about multi-line chains should be revised to not treat keyword the same way as it treat fields or methods.
I subjectively think that it is much more readable to keep the
.await
on the same line as it's associated future, and I think that the 2nd following snippet is much more readable:This was initially requested as a configuration option to rust fmt here: rust-lang/rustfmt#4425
but I suspect that the guideline about multiline chain was made before the
await
keyword was adopted and that the official style guide should probably account for this.The text was updated successfully, but these errors were encountered: