Indent for multiline | patterns

This commit is contained in:
Richard Feldman 2022-07-03 22:17:13 -04:00
parent 872efa9724
commit 244a501433
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
3 changed files with 21 additions and 17 deletions

View file

@ -3379,7 +3379,7 @@ mod test_fmt {
r#"
when 0 is
1 # comment
| 2 -> "a"
| 2 -> "a"
_ -> "b"
"#
));
@ -3477,18 +3477,18 @@ mod test_fmt {
r#"
when b is
1
| 2
| 3 ->
| 2
| 3 ->
4
5 | 6 | 7 ->
8
9
| 10 -> 11
| 10 -> 11
12 | 13 ->
when c is
14 | 15 -> 16
17
| 18 -> 19
| 18 -> 19
20 -> 21
"#
),
@ -3510,7 +3510,7 @@ mod test_fmt {
when b is
3 -> 4
9
| 8 -> 9
| 8 -> 9
"#
),
);