File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ impl ::std::convert::From<graphql_parser::schema::InputObjectType> for GqlInput
59
59
type_ : field. value_type . into ( ) ,
60
60
} ;
61
61
( name, field)
62
- } )
63
- . collect ( ) ,
62
+ } ) . collect ( ) ,
64
63
}
65
64
}
66
65
}
@@ -87,8 +86,7 @@ impl ::std::convert::From<introspection_response::FullType> for GqlInput {
87
86
. into ( ) ,
88
87
} ;
89
88
( name, field)
90
- } )
91
- . collect ( ) ,
89
+ } ) . collect ( ) ,
92
90
}
93
91
}
94
92
}
@@ -136,7 +134,7 @@ mod tests {
136
134
} ,
137
135
) ,
138
136
] . into_iter ( )
139
- . collect ( ) ,
137
+ . collect ( ) ,
140
138
} ;
141
139
142
140
let expected: String = vec ! [
@@ -148,7 +146,7 @@ mod tests {
148
146
"pub requirements : Option < CatRequirements > , " ,
149
147
"}" ,
150
148
] . into_iter ( )
151
- . collect ( ) ;
149
+ . collect ( ) ;
152
150
153
151
let mut context = QueryContext :: new_empty ( ) ;
154
152
context. schema . inputs . insert ( cat. name . clone ( ) , cat) ;
Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ pub(crate) fn field_impls_for_selection(
59
59
} else {
60
60
Ok ( quote ! ( ) )
61
61
}
62
- } )
63
- . collect ( )
62
+ } ) . collect ( )
64
63
}
65
64
66
65
pub ( crate ) fn response_fields_for_selection (
@@ -103,6 +102,5 @@ pub(crate) fn response_fields_for_selection(
103
102
SelectionItem :: InlineFragment ( _) => {
104
103
Err ( format_err ! ( "inline fragment on object field" ) ) ?
105
104
}
106
- } )
107
- . collect ( )
105
+ } ) . collect ( )
108
106
}
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ pub struct GqlUnion {
16
16
enum UnionError {
17
17
#[ fail( display = "Unknown type: {}" , ty) ]
18
18
UnknownType { ty : String } ,
19
- #[ fail( display = "Missing __typename in selection for {}" , union_name) ]
19
+ #[ fail(
20
+ display = "Missing __typename in selection for {}" ,
21
+ union_name
22
+ ) ]
20
23
MissingTypename { union_name : String } ,
21
24
}
22
25
You can’t perform that action at this time.
0 commit comments