delete outdated preview comments

This commit is contained in:
Brent Westbrook 2025-12-11 15:24:53 -05:00
parent 854062f838
commit 6f25547098
No known key found for this signature in database
1 changed files with 2 additions and 6 deletions

View File

@ -129,9 +129,7 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
if dangling_after_parameters.is_empty() {
write!(f, [space()])?;
}
// In preview, always parenthesize the body if there are dangling comments.
else if preview {
} else if preview {
return FormatBody {
body,
dangling: dangling_after_parameters,
@ -147,9 +145,7 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
// In this context, a dangling comment is a comment between the `lambda` and the body.
if dangling.is_empty() {
write!(f, [space()])?;
}
// In preview, always parenthesize the body if there are dangling comments.
else if preview {
} else if preview {
return FormatBody {
body,
dangling,