File tree Expand file tree Collapse file tree
crates/ruff_python_formatter/src/expression Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,14 +62,6 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
6262 . format ( )
6363 . with_options ( ParametersParentheses :: Never )
6464 . fmt ( f)
65- } ?;
66-
67- token ( ":" ) . fmt ( f) ?;
68-
69- if dangling_after_parameters. is_empty ( ) {
70- space ( ) . fmt ( f)
71- } else {
72- dangling_comments ( dangling_after_parameters) . fmt ( f)
7365 }
7466 } ) )
7567 . fmt ( f) ?;
@@ -86,14 +78,14 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
8678 . format( )
8779 . with_options( ParametersParentheses :: Never ) ]
8880 ) ?;
81+ }
8982
90- write ! ( f, [ token( ":" ) ] ) ?;
83+ write ! ( f, [ token( ":" ) ] ) ?;
9184
92- if dangling_after_parameters. is_empty ( ) {
93- write ! ( f, [ space( ) ] ) ?;
94- } else {
95- write ! ( f, [ dangling_comments( dangling_after_parameters) ] ) ?;
96- }
85+ if dangling_after_parameters. is_empty ( ) {
86+ write ! ( f, [ space( ) ] ) ?;
87+ } else {
88+ write ! ( f, [ dangling_comments( dangling_after_parameters) ] ) ?;
9789 }
9890 } else {
9991 write ! ( f, [ token( ":" ) ] ) ?;
You can’t perform that action at this time.
0 commit comments