remove comment

I don't think we can move the `fits_expanded` call into the assignment
formatting because that would wrap the whole lambda in a `fits_expanded`, when we
just want to wrap the lambda body in it instead. if I understand correctly, we'd
need to duplicate basically this whole function to inject `fits_expanded` in the
right place for the lambda formatting in assignments
This commit is contained in:
Brent Westbrook 2025-12-03 14:27:42 -05:00
parent 04963a6b6b
commit 7dddcc85bc
No known key found for this signature in database
1 changed files with 0 additions and 1 deletions

View File

@ -117,7 +117,6 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
}); });
match self.layout { match self.layout {
// Can we move the `fits_expanded` into the assignment formatting?
ExprLambdaLayout::Assignment => fits_expanded(&fmt_body).fmt(f), ExprLambdaLayout::Assignment => fits_expanded(&fmt_body).fmt(f),
ExprLambdaLayout::Default => fmt_body.fmt(f), ExprLambdaLayout::Default => fmt_body.fmt(f),
} }