File tree Expand file tree Collapse file tree 6 files changed +51
-0
lines changed
source/configs/single_line_let_else_max_width
target/configs/single_line_let_else_max_width Expand file tree Collapse file tree 6 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ fn main() {
9
9
return
10
10
} ;
11
11
12
+ let Some ( c) = opt else {
13
+ // a comment should always force the block to be multi-lined
14
+ return
15
+ } ;
16
+
17
+ let Some ( c) = opt else { /* a comment should always force the block to be multi-lined */ return } ;
18
+
12
19
let Some ( d) = some_very_very_very_very_long_name else { return } ;
13
20
}
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ fn main() {
9
9
return
10
10
} ;
11
11
12
+ let Some ( c) = opt else {
13
+ // a comment should always force the block to be multi-lined
14
+ return
15
+ } ;
16
+
17
+ let Some ( c) = opt else { /* a comment should always force the block to be multi-lined */ return } ;
18
+
12
19
let Some ( d) = some_very_very_very_very_long_name else { return } ;
13
20
}
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ fn main() {
9
9
return
10
10
} ;
11
11
12
+ let Some ( c) = opt else {
13
+ // a comment should always force the block to be multi-lined
14
+ return
15
+ } ;
16
+
17
+ let Some ( c) = opt else { /* a comment should always force the block to be multi-lined */ return } ;
18
+
12
19
let Some ( d) = some_very_very_very_very_long_name else { return } ;
13
20
}
Original file line number Diff line number Diff line change @@ -7,5 +7,15 @@ fn main() {
7
7
8
8
let Some ( c) = opt else { return } ;
9
9
10
+ let Some ( c) = opt else {
11
+ // a comment should always force the block to be multi-lined
12
+ return ;
13
+ } ;
14
+
15
+ let Some ( c) = opt else {
16
+ /* a comment should always force the block to be multi-lined */
17
+ return ;
18
+ } ;
19
+
10
20
let Some ( d) = some_very_very_very_very_long_name else { return } ;
11
21
}
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ fn main() {
7
7
8
8
let Some ( c) = opt else { return } ;
9
9
10
+ let Some ( c) = opt else {
11
+ // a comment should always force the block to be multi-lined
12
+ return ;
13
+ } ;
14
+
15
+ let Some ( c) = opt else {
16
+ /* a comment should always force the block to be multi-lined */
17
+ return ;
18
+ } ;
19
+
10
20
let Some ( d) = some_very_very_very_very_long_name else {
11
21
return ;
12
22
} ;
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ fn main() {
11
11
return ;
12
12
} ;
13
13
14
+ let Some ( c) = opt else {
15
+ // a comment should always force the block to be multi-lined
16
+ return ;
17
+ } ;
18
+
19
+ let Some ( c) = opt else {
20
+ /* a comment should always force the block to be multi-lined */
21
+ return ;
22
+ } ;
23
+
14
24
let Some ( d) = some_very_very_very_very_long_name else {
15
25
return ;
16
26
} ;
You can’t perform that action at this time.
0 commit comments