@@ -21,7 +21,7 @@ fn main() {
2121
2222 let Some ( x) = opt else {
2323 let y = 1 ;
24- return y;
24+ return y
2525 } ;
2626
2727 let Some ( x) = y. foo (
@@ -54,41 +54,41 @@ fn with_comments_around_else_keyword() {
5454 let Some ( x) = opt
5555 /* pre else keyword block-comment */
5656 else {
57- return ;
57+ return
5858 } ;
5959
6060 let Some ( x) = opt else
6161 /* post else keyword block-comment */
6262 {
63- return ;
63+ return
6464 } ;
6565
6666 let Some ( x) = opt
6767 /* pre else keyword block-comment */
6868 else
6969 /* post else keyword block-comment */
7070 {
71- return ;
71+ return
7272 } ;
7373
7474 let Some ( x) = opt
7575 // pre else keyword line-comment
7676 else {
77- return ;
77+ return
7878 } ;
7979
8080 let Some ( x) = opt else
8181 // post else keyword line-comment
8282 {
83- return ;
83+ return
8484 } ;
8585
8686 let Some ( x) = opt
8787 // pre else keyword line-comment
8888 else
8989 // post else keyword line-comment
9090 {
91- return ;
91+ return
9292 } ;
9393}
9494
@@ -106,7 +106,7 @@ fn unbreakable_initializer_expr_pre_formatting_let_else_length_near_max_width()
106106 // and the else block is formatted over multiple lines because we can't fit the
107107 // else block on the same line as the initializer expr.
108108 let Some ( x) = some_really_really_really_really_really_really_really_long_name___B else {
109- return ;
109+ return
110110 } ;
111111
112112 // Pre Formatting:
@@ -126,7 +126,7 @@ fn unbreakable_initializer_expr_pre_formatting_let_else_length_near_max_width()
126126 // and the else block is formatted over multiple lines because we can't fit the
127127 // else block on the same line as the initializer expr.
128128 let Some ( x) = some_really_really_really_really_really_really_really_long_name__D else {
129- return ;
129+ return
130130 } ;
131131}
132132
@@ -138,7 +138,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_up_to_opening_brace_near_m
138138 // and the else block is formatted over multiple lines because we can't fit the
139139 // else block on the same line as the initializer expr.
140140 let Some ( x) = some_really_really_really_really_really_really_really_really_long_name___E else {
141- return ;
141+ return
142142 } ;
143143
144144 // Pre Formatting:
@@ -148,7 +148,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_up_to_opening_brace_near_m
148148 // They are formatted on the next line.
149149 let Some ( x) = some_really_really_really_really_really_really_really_really_long_name_____F
150150 else {
151- return ;
151+ return
152152 } ;
153153}
154154
@@ -160,7 +160,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
160160 // They are formatted on the next line.
161161 let Some ( x) = some_really_really_really_really_really_really_really_really_really_long_name___G
162162 else {
163- return ;
163+ return
164164 } ;
165165
166166 // Pre Formatting:
@@ -171,7 +171,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
171171 let Some ( x) =
172172 some_really_really_really_really_really_really_really_really_really_long_name____H
173173 else {
174- return ;
174+ return
175175 } ;
176176
177177 // Pre Formatting:
@@ -186,7 +186,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
186186 let Some ( x) =
187187 some_really_really_really_really_really_really_really_really_really_really_long_name______I
188188 else {
189- return ;
189+ return
190190 } ;
191191
192192 // Pre Formatting:
@@ -240,7 +240,7 @@ fn with_trailing_try_operator() {
240240 & ranking_rule_universes[ cur_ranking_rule_index] ,
241241 ) ?
242242 else {
243- return ;
243+ return
244244 } ;
245245
246246 // Maybe this is a workaround?
@@ -249,7 +249,7 @@ fn with_trailing_try_operator() {
249249 logger,
250250 & ranking_rule_universes[ cur_ranking_rule_index] ,
251251 ) else {
252- return ;
252+ return
253253 } ;
254254}
255255
0 commit comments