File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ before the `else`.
159
159
160
160
If the initializer expression is multi-line, the ` else ` keyword and opening
161
161
brace of the block (i.e. ` else { ` ) should be put on the same line as the end of
162
- the initializer expression, with a space between them, if all the following are
163
- true:
162
+ the initializer expression, with a space between them, if and only if all the
163
+ following are true:
164
164
165
165
* The initializer expression ends with one or more closing
166
166
parentheses, square brackets, and/or braces
@@ -209,6 +209,28 @@ fn main() {
209
209
else {
210
210
return ;
211
211
};
212
+
213
+ let LongStructName (AnotherStruct {
214
+ multi ,
215
+ line ,
216
+ pattern ,
217
+ }) = slice . as_ref ()
218
+ else {
219
+ return ;
220
+ };
221
+
222
+ let LongStructName (AnotherStruct {
223
+ multi ,
224
+ line ,
225
+ pattern ,
226
+ }) = multi_line_function_call (
227
+ arg1 ,
228
+ arg2 ,
229
+ arg3 ,
230
+ arg4 ,
231
+ ) else {
232
+ return ;
233
+ };
212
234
}
213
235
```
214
236
You can’t perform that action at this time.
0 commit comments