File tree 2 files changed +84
-0
lines changed
2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,24 @@ fn combine_blocklike() {
17
17
) ;
18
18
19
19
do_thing (
20
+ x,
21
+
22
+ // I'll be discussing the `action` with your para(m)legal counsel
23
+ |param| {
24
+ action ( ) ;
25
+ foo ( param)
26
+ } ,
27
+ ) ;
28
+
29
+ do_thing (
30
+ Bar {
31
+ x : value,
32
+ y : value2,
33
+ } ,
34
+ ) ;
35
+
36
+ do_thing (
37
+ x,
20
38
Bar {
21
39
x : value,
22
40
y : value2,
@@ -25,6 +43,8 @@ fn combine_blocklike() {
25
43
26
44
do_thing (
27
45
x,
46
+
47
+ // Let me tell you about that one time at the `Bar`
28
48
Bar {
29
49
x : value,
30
50
y : value2,
@@ -51,6 +71,28 @@ fn combine_blocklike() {
51
71
) ;
52
72
53
73
do_thing (
74
+ x,
75
+
76
+ // Just admit it; my list is longer than can be folded on to one line
77
+ & [
78
+ value_with_longer_name,
79
+ value2_with_longer_name,
80
+ value3_with_longer_name,
81
+ value4_with_longer_name,
82
+ ] ,
83
+ ) ;
84
+
85
+ do_thing (
86
+ vec ! [
87
+ value_with_longer_name,
88
+ value2_with_longer_name,
89
+ value3_with_longer_name,
90
+ value4_with_longer_name,
91
+ ] ,
92
+ ) ;
93
+
94
+ do_thing (
95
+ x,
54
96
vec ! [
55
97
value_with_longer_name,
56
98
value2_with_longer_name,
@@ -61,6 +103,8 @@ fn combine_blocklike() {
61
103
62
104
do_thing (
63
105
x,
106
+
107
+ // Just admit it; my list is longer than can be folded on to one line
64
108
vec ! [
65
109
value_with_longer_name,
66
110
value2_with_longer_name,
Original file line number Diff line number Diff line change @@ -11,6 +11,15 @@ fn combine_blocklike() {
11
11
foo ( param)
12
12
} ) ;
13
13
14
+ do_thing (
15
+ x,
16
+ // I'll be discussing the `action` with your para(m)legal counsel
17
+ |param| {
18
+ action ( ) ;
19
+ foo ( param)
20
+ } ,
21
+ ) ;
22
+
14
23
do_thing ( Bar {
15
24
x : value,
16
25
y : value2,
@@ -21,6 +30,15 @@ fn combine_blocklike() {
21
30
y : value2,
22
31
} ) ;
23
32
33
+ do_thing (
34
+ x,
35
+ // Let me tell you about that one time at the `Bar`
36
+ Bar {
37
+ x : value,
38
+ y : value2,
39
+ } ,
40
+ ) ;
41
+
24
42
do_thing ( & [
25
43
value_with_longer_name,
26
44
value2_with_longer_name,
@@ -35,6 +53,17 @@ fn combine_blocklike() {
35
53
value4_with_longer_name,
36
54
] ) ;
37
55
56
+ do_thing (
57
+ x,
58
+ // Just admit it; my list is longer than can be folded on to one line
59
+ & [
60
+ value_with_longer_name,
61
+ value2_with_longer_name,
62
+ value3_with_longer_name,
63
+ value4_with_longer_name,
64
+ ] ,
65
+ ) ;
66
+
38
67
do_thing ( vec ! [
39
68
value_with_longer_name,
40
69
value2_with_longer_name,
@@ -49,6 +78,17 @@ fn combine_blocklike() {
49
78
value4_with_longer_name,
50
79
] ) ;
51
80
81
+ do_thing (
82
+ x,
83
+ // Just admit it; my list is longer than can be folded on to one line
84
+ vec ! [
85
+ value_with_longer_name,
86
+ value2_with_longer_name,
87
+ value3_with_longer_name,
88
+ value4_with_longer_name,
89
+ ] ,
90
+ ) ;
91
+
52
92
do_thing (
53
93
x,
54
94
( 1 , 2 , 3 , |param| {
You can’t perform that action at this time.
0 commit comments