Don't simplify backpassing record assignment

This commit is contained in:
Joshua Warner 2024-12-15 10:08:25 -08:00
parent c6d5983ff2
commit 10e7e24184
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 72 additions and 0 deletions

View file

@ -991,6 +991,7 @@ pub fn fmt_body<'a>(
&& pattern_extracted.after.iter().all(|s| s.is_newline())
&& !matches!(body.extract_spaces().item, Expr::Defs(..))
&& !matches!(body.extract_spaces().item, Expr::Return(..))
&& !matches!(body.extract_spaces().item, Expr::Backpassing(..))
&& !starts_with_expect_ident(body)
} else {
false