File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ impl Function {
114
114
r. apply_to_snake_case ( & x. 0 , IdentifierType :: FunctionArg ) ,
115
115
x. 1 . clone ( ) ,
116
116
)
117
- } ) . collect ( )
117
+ } )
118
+ . collect ( )
118
119
}
119
120
}
120
121
}
Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ impl Struct {
46
46
let ( fields, tuple_struct) = match & item. fields {
47
47
& syn:: Fields :: Unit => ( Vec :: new ( ) , false ) ,
48
48
& syn:: Fields :: Named ( ref fields) => {
49
- let out = fields. named . iter ( ) . try_skip_map ( |x| x. as_ident_and_type ( ) ) ?;
49
+ let out = fields
50
+ . named
51
+ . iter ( )
52
+ . try_skip_map ( |x| x. as_ident_and_type ( ) ) ?;
50
53
( out, false )
51
54
}
52
55
& syn:: Fields :: Unnamed ( ref fields) => {
@@ -318,8 +321,7 @@ impl Source for Struct {
318
321
. map ( |& ( ref name, ref ty, _) | {
319
322
// const-ref args to constructor
320
323
( format ! ( "const& {}" , arg_renamer( name) ) , ty. clone ( ) )
321
- } )
322
- . collect ( ) ,
324
+ } ) . collect ( ) ,
323
325
ListType :: Join ( "," ) ,
324
326
) ;
325
327
write ! ( out, ")" ) ;
Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ impl Item for Union {
156
156
x. 1 . clone ( ) ,
157
157
x. 2 . clone ( ) ,
158
158
)
159
- } ) . collect ( ) ;
159
+ } )
160
+ . collect ( ) ;
160
161
} else if self . tuple_union {
161
162
// If we don't have any rules for a tuple union, prefix them with
162
163
// an underscore so it still compiles
You can’t perform that action at this time.
0 commit comments