@@ -21,7 +21,7 @@ fn main() {
21
21
22
22
let Some ( x) = opt else {
23
23
let y = 1 ;
24
- return y;
24
+ return y
25
25
} ;
26
26
27
27
let Some ( x) = y. foo (
@@ -54,41 +54,41 @@ fn with_comments_around_else_keyword() {
54
54
let Some ( x) = opt
55
55
/* pre else keyword block-comment */
56
56
else {
57
- return ;
57
+ return
58
58
} ;
59
59
60
60
let Some ( x) = opt else
61
61
/* post else keyword block-comment */
62
62
{
63
- return ;
63
+ return
64
64
} ;
65
65
66
66
let Some ( x) = opt
67
67
/* pre else keyword block-comment */
68
68
else
69
69
/* post else keyword block-comment */
70
70
{
71
- return ;
71
+ return
72
72
} ;
73
73
74
74
let Some ( x) = opt
75
75
// pre else keyword line-comment
76
76
else {
77
- return ;
77
+ return
78
78
} ;
79
79
80
80
let Some ( x) = opt else
81
81
// post else keyword line-comment
82
82
{
83
- return ;
83
+ return
84
84
} ;
85
85
86
86
let Some ( x) = opt
87
87
// pre else keyword line-comment
88
88
else
89
89
// post else keyword line-comment
90
90
{
91
- return ;
91
+ return
92
92
} ;
93
93
}
94
94
@@ -106,7 +106,7 @@ fn unbreakable_initializer_expr_pre_formatting_let_else_length_near_max_width()
106
106
// and the else block is formatted over multiple lines because we can't fit the
107
107
// else block on the same line as the initializer expr.
108
108
let Some ( x) = some_really_really_really_really_really_really_really_long_name___B else {
109
- return ;
109
+ return
110
110
} ;
111
111
112
112
// Pre Formatting:
@@ -126,7 +126,7 @@ fn unbreakable_initializer_expr_pre_formatting_let_else_length_near_max_width()
126
126
// and the else block is formatted over multiple lines because we can't fit the
127
127
// else block on the same line as the initializer expr.
128
128
let Some ( x) = some_really_really_really_really_really_really_really_long_name__D else {
129
- return ;
129
+ return
130
130
} ;
131
131
}
132
132
@@ -138,7 +138,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_up_to_opening_brace_near_m
138
138
// and the else block is formatted over multiple lines because we can't fit the
139
139
// else block on the same line as the initializer expr.
140
140
let Some ( x) = some_really_really_really_really_really_really_really_really_long_name___E else {
141
- return ;
141
+ return
142
142
} ;
143
143
144
144
// Pre Formatting:
@@ -148,7 +148,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_up_to_opening_brace_near_m
148
148
// They are formatted on the next line.
149
149
let Some ( x) = some_really_really_really_really_really_really_really_really_long_name_____F
150
150
else {
151
- return ;
151
+ return
152
152
} ;
153
153
}
154
154
@@ -160,7 +160,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
160
160
// They are formatted on the next line.
161
161
let Some ( x) = some_really_really_really_really_really_really_really_really_really_long_name___G
162
162
else {
163
- return ;
163
+ return
164
164
} ;
165
165
166
166
// Pre Formatting:
@@ -171,7 +171,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
171
171
let Some ( x) =
172
172
some_really_really_really_really_really_really_really_really_really_long_name____H
173
173
else {
174
- return ;
174
+ return
175
175
} ;
176
176
177
177
// Pre Formatting:
@@ -186,7 +186,7 @@ fn unbreakable_initializer_expr_pre_formatting_length_through_initializer_expr_n
186
186
let Some ( x) =
187
187
some_really_really_really_really_really_really_really_really_really_really_long_name______I
188
188
else {
189
- return ;
189
+ return
190
190
} ;
191
191
192
192
// Pre Formatting:
@@ -240,7 +240,7 @@ fn with_trailing_try_operator() {
240
240
& ranking_rule_universes[ cur_ranking_rule_index] ,
241
241
) ?
242
242
else {
243
- return ;
243
+ return
244
244
} ;
245
245
246
246
// Maybe this is a workaround?
@@ -249,7 +249,7 @@ fn with_trailing_try_operator() {
249
249
logger,
250
250
& ranking_rule_universes[ cur_ranking_rule_index] ,
251
251
) else {
252
- return ;
252
+ return
253
253
} ;
254
254
}
255
255
0 commit comments