File tree Expand file tree Collapse file tree 10 files changed +45
-53
lines changed Expand file tree Collapse file tree 10 files changed +45
-53
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ fn main() {
15
15
// Test case where first chain element isn't a path, but is shorter than
16
16
// the size of a tab.
17
17
x ( ) . y ( || match cond ( ) {
18
- true => ( ) ,
19
- false => ( ) ,
20
- } ) ;
18
+ true => ( ) ,
19
+ false => ( ) ,
20
+ } ) ;
21
21
22
22
loong_func ( ) . quux ( move || if true { 1 } else { 2 } ) ;
23
23
24
24
some_fuuuuuuuuunction ( ) . method_call_a ( aaaaa, bbbbb, |c| {
25
- let x = c;
26
- x
27
- } ) ;
25
+ let x = c;
26
+ x
27
+ } ) ;
28
28
29
29
some_fuuuuuuuuunction ( ) . method_call_a ( aaaaa, bbbbb, |c| {
30
30
let x = c;
@@ -59,7 +59,7 @@ fn floaters() {
59
59
60
60
let x = Foo { field1 : val1,
61
61
field2 : val2, } . method_call ( )
62
- . method_call ( ) ;
62
+ . method_call ( ) ;
63
63
64
64
let y = if cond { val1 } else { val2 } . method_call ( ) ;
65
65
@@ -80,7 +80,7 @@ fn floaters() {
80
80
} else {
81
81
none ( ) ;
82
82
} . bar ( )
83
- . baz ( ) ;
83
+ . baz ( ) ;
84
84
85
85
Foo { x : val } . baz ( || {
86
86
force ( ) ;
@@ -90,10 +90,10 @@ fn floaters() {
90
90
91
91
Foo { y : i_am_multi_line,
92
92
z : ok, } . baz ( || {
93
- force ( ) ;
94
- multiline ( ) ;
95
- } )
96
- . quux ( ) ;
93
+ force ( ) ;
94
+ multiline ( ) ;
95
+ } )
96
+ . quux ( ) ;
97
97
98
98
a + match x {
99
99
true => "yay!" ,
@@ -137,9 +137,9 @@ fn issue1434() {
137
137
for _ in 0 ..100 {
138
138
let prototype_id =
139
139
PrototypeIdData :: from_reader :: < _ , B > ( & mut self . file_cursor ) . chain_err ( || {
140
- format ! ( "could not read prototype ID at offset {:#010x}" ,
141
- current_offset)
142
- } ) ?;
140
+ format ! ( "could not read prototype ID at offset {:#010x}" ,
141
+ current_offset)
142
+ } ) ?;
143
143
}
144
144
}
145
145
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ fn main() {
38
38
. method_call_a ( aaaaa, bbbbb, |c| {
39
39
let x = c;
40
40
x
41
- } )
42
- . method_call_b ( aaaaa, bbbbb, |c| {
41
+ } ) . method_call_b ( aaaaa, bbbbb, |c| {
43
42
let x = c;
44
43
x
45
44
} ) ;
@@ -65,8 +64,7 @@ fn main() {
65
64
. map ( |x| {
66
65
x += 1 ;
67
66
x
68
- } )
69
- . filter ( some_mod:: some_filter)
67
+ } ) . filter ( some_mod:: some_filter)
70
68
}
71
69
72
70
fn floaters ( ) {
@@ -79,7 +77,7 @@ fn floaters() {
79
77
field1 : val1,
80
78
field2 : val2,
81
79
} . method_call ( )
82
- . method_call ( ) ;
80
+ . method_call ( ) ;
83
81
84
82
let y = if cond {
85
83
val1
@@ -106,24 +104,22 @@ fn floaters() {
106
104
} else {
107
105
none ( ) ;
108
106
} . bar ( )
109
- . baz ( ) ;
107
+ . baz ( ) ;
110
108
111
109
Foo {
112
110
x : val,
113
111
} . baz ( || {
114
112
force ( ) ;
115
113
multiline ( ) ;
116
- } )
117
- . quux ( ) ;
114
+ } ) . quux ( ) ;
118
115
119
116
Foo {
120
117
y : i_am_multi_line,
121
118
z : ok,
122
119
} . baz ( || {
123
120
force ( ) ;
124
121
multiline ( ) ;
125
- } )
126
- . quux ( ) ;
122
+ } ) . quux ( ) ;
127
123
128
124
a + match x {
129
125
true => "yay!" ,
@@ -238,8 +234,7 @@ impl Foo {
238
234
}
239
235
}
240
236
} )
241
- } )
242
- . collect ( ) ;
237
+ } ) . collect ( ) ;
243
238
}
244
239
}
245
240
Original file line number Diff line number Diff line change @@ -138,18 +138,20 @@ fn issue470() {
138
138
{
139
139
{
140
140
{
141
- let explicit_arg_decls = explicit_arguments. into_iter ( ) . enumerate ( ) . map (
142
- |( index, ( ty, pattern) ) | {
143
- let lvalue = Lvalue :: Arg ( index as u32 ) ;
144
- block = this. pattern (
145
- block,
146
- argument_extent,
147
- hair:: PatternRef :: Hair ( pattern) ,
148
- & lvalue,
149
- ) ;
150
- ArgDecl { ty : ty }
151
- } ,
152
- ) ;
141
+ let explicit_arg_decls =
142
+ explicit_arguments
143
+ . into_iter ( )
144
+ . enumerate ( )
145
+ . map ( |( index, ( ty, pattern) ) | {
146
+ let lvalue = Lvalue :: Arg ( index as u32 ) ;
147
+ block = this. pattern (
148
+ block,
149
+ argument_extent,
150
+ hair:: PatternRef :: Hair ( pattern) ,
151
+ & lvalue,
152
+ ) ;
153
+ ArgDecl { ty : ty }
154
+ } ) ;
153
155
}
154
156
}
155
157
}
@@ -169,8 +171,7 @@ fn issue1329() {
169
171
. map ( |x| {
170
172
x += 1 ;
171
173
x
172
- } )
173
- . filter
174
+ } ) . filter
174
175
}
175
176
176
177
fn issue325 ( ) {
Original file line number Diff line number Diff line change @@ -117,8 +117,7 @@ impl Cursor {
117
117
debug_assert_eq ! ( n, -1 ) ;
118
118
None
119
119
}
120
- } )
121
- . or_else ( || {
120
+ } ) . or_else ( || {
122
121
let canonical = self . canonical ( ) ;
123
122
if canonical != * self {
124
123
canonical. num_template_args ( )
Original file line number Diff line number Diff line change @@ -141,8 +141,7 @@ fn issue_1450() {
141
141
Relaxed ,
142
142
Release ,
143
143
Relaxed ,
144
- )
145
- . is_ok ( )
144
+ ) . is_ok ( )
146
145
{
147
146
return ;
148
147
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ fn floaters() {
5
5
field1 : val1,
6
6
field2 : val2,
7
7
} . method_call ( )
8
- . method_call ( ) ;
8
+ . method_call ( ) ;
9
9
10
10
let y = if cond {
11
11
val1
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ fn floaters() {
5
5
field1 : val1,
6
6
field2 : val2,
7
7
} . method_call ( )
8
- . method_call ( ) ;
8
+ . method_call ( ) ;
9
9
10
10
let y = if cond { val1 } else { val2 } . method_call ( ) ;
11
11
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ fn bar() {}
56
56
/// .boxed(),
57
57
/// ]
58
58
/// }).bind("127.0.0.1:8080")
59
- /// .unwrap()
60
- /// .run()
59
+ /// .unwrap()
60
+ /// .run()
61
61
/// # });
62
62
/// }
63
63
/// ```
Original file line number Diff line number Diff line change @@ -183,8 +183,7 @@ fn issue_1885() {
183
183
chan_select ! {
184
184
rx. recv( ) => { }
185
185
}
186
- } )
187
- . collect :: < Vec < _ > > ( ) ;
186
+ } ) . collect :: < Vec < _ > > ( ) ;
188
187
}
189
188
190
189
fn issue_1917 ( ) {
Original file line number Diff line number Diff line change @@ -381,8 +381,7 @@ fn issue1456() {
381
381
. iter ( )
382
382
. map ( |node| {
383
383
XPathNodeReader :: new ( node, & context) . and_then ( |r| ArtistRef :: from_xml ( & r) )
384
- } )
385
- . collect ( ) ;
384
+ } ) . collect ( ) ;
386
385
res?
387
386
}
388
387
_ => Vec :: new ( ) ,
You can’t perform that action at this time.
0 commit comments