Fix indent call in when fmt

This commit is contained in:
Joshua Warner 2024-12-01 19:29:30 -08:00
parent fa4d3e79ec
commit ab4c96bc81
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,3 @@
when nns is
O #
-> r

View file

@ -0,0 +1,32 @@
When(
@5-8 Var {
module_name: "",
ident: "nns",
},
[
WhenBranch {
patterns: [
@12-13 SpaceBefore(
SpaceAfter(
Tag(
"O",
),
[
LineComment(
"",
),
],
),
[
Newline,
],
),
],
value: @18-19 Var {
module_name: "",
ident: "r",
},
guard: None,
},
],
)

View file

@ -0,0 +1,3 @@
when nns is
O#
->r

View file

@ -653,6 +653,7 @@ mod test_snapshots {
pass/var_minus_two.expr,
pass/var_then.expr,
pass/var_when.expr,
pass/when_comment_after_pattern.expr,
pass/when_if_guard.expr,
pass/when_in_assignment.expr,
pass/when_in_binops.expr,