@@ -32,7 +32,7 @@ impl<'schema> GqlInterface<'schema> {
32
32
fn object_selection < ' query > (
33
33
& self ,
34
34
selection : & ' query Selection < ' query > ,
35
- query_context : & QueryContext ,
35
+ query_context : & QueryContext < ' _ , ' _ > ,
36
36
) -> Selection < ' query > {
37
37
( & selection)
38
38
. into_iter ( )
@@ -58,8 +58,8 @@ impl<'schema> GqlInterface<'schema> {
58
58
59
59
fn union_selection < ' query > (
60
60
& self ,
61
- selection : & ' query Selection ,
62
- query_context : & QueryContext ,
61
+ selection : & ' query Selection < ' _ > ,
62
+ query_context : & QueryContext < ' _ , ' _ > ,
63
63
) -> Selection < ' query > {
64
64
( & selection)
65
65
. into_iter ( )
@@ -100,8 +100,8 @@ impl<'schema> GqlInterface<'schema> {
100
100
/// The generated code for each of the selected field's types. See [shared::field_impls_for_selection].
101
101
pub ( crate ) fn field_impls_for_selection (
102
102
& self ,
103
- context : & QueryContext ,
104
- selection : & Selection ,
103
+ context : & QueryContext < ' _ , ' _ > ,
104
+ selection : & Selection < ' _ > ,
105
105
prefix : & str ,
106
106
) -> Result < Vec < TokenStream > , failure:: Error > {
107
107
crate :: shared:: field_impls_for_selection (
@@ -115,8 +115,8 @@ impl<'schema> GqlInterface<'schema> {
115
115
/// The code for the interface's corresponding struct's fields.
116
116
pub ( crate ) fn response_fields_for_selection (
117
117
& self ,
118
- context : & QueryContext ,
119
- selection : & Selection ,
118
+ context : & QueryContext < ' _ , ' _ > ,
119
+ selection : & Selection < ' _ > ,
120
120
prefix : & str ,
121
121
) -> Result < Vec < TokenStream > , failure:: Error > {
122
122
response_fields_for_selection (
@@ -131,8 +131,8 @@ impl<'schema> GqlInterface<'schema> {
131
131
/// Generate all the code for the interface.
132
132
pub ( crate ) fn response_for_selection (
133
133
& self ,
134
- query_context : & QueryContext ,
135
- selection : & Selection ,
134
+ query_context : & QueryContext < ' _ , ' _ > ,
135
+ selection : & Selection < ' _ > ,
136
136
prefix : & str ,
137
137
) -> Result < TokenStream , failure:: Error > {
138
138
let name = Ident :: new ( & prefix, Span :: call_site ( ) ) ;
@@ -250,7 +250,7 @@ mod tests {
250
250
name : "__typename" ,
251
251
fields : Selection :: new_empty ( ) ,
252
252
} ) ;
253
- let selection: Selection = vec ! [ typename_field] . into_iter ( ) . collect ( ) ;
253
+ let selection: Selection < ' _ > = vec ! [ typename_field] . into_iter ( ) . collect ( ) ;
254
254
255
255
assert_eq ! (
256
256
iface. object_selection( & selection, & context) ,
0 commit comments