-
Notifications
You must be signed in to change notification settings - Fork 985
Open
Labels
C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)F-impacts-unstable-codeExpected impact on formatting: affects only unstable codeExpected impact on formatting: affects only unstable codeunstable-language-featureFormatting related to an unstable language featureFormatting related to an unstable language feature
Description
When using a normal block as the last argument of a function, formatting is compact:
let _ = qux(x, {
foo();
bar();
});But not for try blocks:
let _ = qux(
x,
try {
foo();
bar();
},
);Ideally, I would expect:
let _ = qux(x, try {
foo();
bar();
});Is this behavior intended or accidental? If it is intended what's the rationale? And could it be made customizable?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)F-impacts-unstable-codeExpected impact on formatting: affects only unstable codeExpected impact on formatting: affects only unstable codeunstable-language-featureFormatting related to an unstable language featureFormatting related to an unstable language feature