-
Notifications
You must be signed in to change notification settings - Fork 970
Closed as duplicate of#4306
Labels
A-call-chainsArea: method call chainsArea: method call chainsS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR
Description
Input:
let foo = foo.bar().await.biz().await.baz().await;Desired output:
let foo = foo
.bar().await
.biz().await
.baz().await;Current output:
let foo = foo
.bar()
.await
.biz()
.await
.baz()
.await;A nightly (or even stable 👀) option to get the Desired output would be really nice. Justification for this is there rarely is anything to do other than .await for the vast majority of async methods, and a newline is extra noise. Putting the .await on the same line signifies a stronger tie to the method and makes it easier to shuffle them around by shifting lines.
I'm willing to work on this, just curious if it has any chance of getting merged.
Metadata
Metadata
Assignees
Labels
A-call-chainsArea: method call chainsArea: method call chainsS-duplicateStatus: duplicate of another issue or PRStatus: duplicate of another issue or PR