mirror of https://github.com/astral-sh/ruff
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:
parent
04963a6b6b
commit
7dddcc85bc
|
|
@ -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),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue