Adjust parens around patterns in annotations

This commit is contained in:
Joshua Warner 2024-12-01 17:11:21 -08:00
parent b79d387b46
commit 84b3969648
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
23 changed files with 88 additions and 128 deletions

View file

@ -2144,40 +2144,6 @@ mod test_fmt {
);
}
#[test]
fn comments_with_newlines_in_records() {
expr_formats_to(
indoc!(
r"
{
z: 44 #comment 0
,
y: 41, # comment 1
# comment 2
x: 42
# comment 3
# comment 4
}"
),
indoc!(
r"
{
z: 44,
# comment 0
y: 41,
# comment 1
# comment 2
x: 42,
# comment 3
# comment 4
}"
),
);
}
#[test]
fn multiple_final_comments_with_comma_in_records() {
expr_formats_to(