From c7666423ba2d31a6ff8e86193404206d382cfad8 Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Fri, 5 Dec 2025 13:22:09 -0500 Subject: [PATCH] block indent and trailing comments --- crates/ruff_python_formatter/src/expression/expr_lambda.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ruff_python_formatter/src/expression/expr_lambda.rs b/crates/ruff_python_formatter/src/expression/expr_lambda.rs index 21e70239f1..b64110b2b8 100644 --- a/crates/ruff_python_formatter/src/expression/expr_lambda.rs +++ b/crates/ruff_python_formatter/src/expression/expr_lambda.rs @@ -3,7 +3,7 @@ use ruff_python_ast::{AnyNodeRef, Expr, ExprLambda}; use ruff_text_size::Ranged; use crate::builders::parenthesize_if_expands; -use crate::comments::dangling_comments; +use crate::comments::{dangling_comments, trailing_comments}; use crate::expression::parentheses::{NeedsParentheses, OptionalParentheses, Parentheses}; use crate::expression::{CallChainLayout, has_own_parentheses}; use crate::other::parameters::ParametersParentheses; @@ -93,8 +93,8 @@ impl FormatNodeRule for FormatExprLambda { [ space(), token("("), - dangling_comments(dangling_end_of_line), - soft_block_indent(&format_args!( + trailing_comments(dangling_end_of_line), + block_indent(&format_args!( dangling_comments(dangling_own_line), body.format().with_options(Parentheses::Never) )),