@@ -32,7 +32,7 @@ impl<'schema> GqlInterface<'schema> {
3232 fn object_selection < ' query > (
3333 & self ,
3434 selection : & ' query Selection < ' query > ,
35- query_context : & QueryContext ,
35+ query_context : & QueryContext < ' _ , ' _ > ,
3636 ) -> Selection < ' query > {
3737 ( & selection)
3838 . into_iter ( )
@@ -58,8 +58,8 @@ impl<'schema> GqlInterface<'schema> {
5858
5959 fn union_selection < ' query > (
6060 & self ,
61- selection : & ' query Selection ,
62- query_context : & QueryContext ,
61+ selection : & ' query Selection < ' _ > ,
62+ query_context : & QueryContext < ' _ , ' _ > ,
6363 ) -> Selection < ' query > {
6464 ( & selection)
6565 . into_iter ( )
@@ -100,8 +100,8 @@ impl<'schema> GqlInterface<'schema> {
100100 /// The generated code for each of the selected field's types. See [shared::field_impls_for_selection].
101101 pub ( crate ) fn field_impls_for_selection (
102102 & self ,
103- context : & QueryContext ,
104- selection : & Selection ,
103+ context : & QueryContext < ' _ , ' _ > ,
104+ selection : & Selection < ' _ > ,
105105 prefix : & str ,
106106 ) -> Result < Vec < TokenStream > , failure:: Error > {
107107 crate :: shared:: field_impls_for_selection (
@@ -115,8 +115,8 @@ impl<'schema> GqlInterface<'schema> {
115115 /// The code for the interface's corresponding struct's fields.
116116 pub ( crate ) fn response_fields_for_selection (
117117 & self ,
118- context : & QueryContext ,
119- selection : & Selection ,
118+ context : & QueryContext < ' _ , ' _ > ,
119+ selection : & Selection < ' _ > ,
120120 prefix : & str ,
121121 ) -> Result < Vec < TokenStream > , failure:: Error > {
122122 response_fields_for_selection (
@@ -131,8 +131,8 @@ impl<'schema> GqlInterface<'schema> {
131131 /// Generate all the code for the interface.
132132 pub ( crate ) fn response_for_selection (
133133 & self ,
134- query_context : & QueryContext ,
135- selection : & Selection ,
134+ query_context : & QueryContext < ' _ , ' _ > ,
135+ selection : & Selection < ' _ > ,
136136 prefix : & str ,
137137 ) -> Result < TokenStream , failure:: Error > {
138138 let name = Ident :: new ( & prefix, Span :: call_site ( ) ) ;
@@ -250,7 +250,7 @@ mod tests {
250250 name : "__typename" ,
251251 fields : Selection :: new_empty ( ) ,
252252 } ) ;
253- let selection: Selection = vec ! [ typename_field] . into_iter ( ) . collect ( ) ;
253+ let selection: Selection < ' _ > = vec ! [ typename_field] . into_iter ( ) . collect ( ) ;
254254
255255 assert_eq ! (
256256 iface. object_selection( & selection, & context) ,
0 commit comments