diff --git a/graphql_client_codegen/src/codegen/selection.rs b/graphql_client_codegen/src/codegen/selection.rs index 5dd72e28..2ad054d9 100644 --- a/graphql_client_codegen/src/codegen/selection.rs +++ b/graphql_client_codegen/src/codegen/selection.rs @@ -391,7 +391,7 @@ struct ExpandedField<'a> { boxed: bool, } -impl<'a> ExpandedField<'a> { +impl ExpandedField<'_> { fn render(&self, options: &GraphQLClientCodegenOptions) -> Option { let ident = Ident::new(&self.rust_name, Span::call_site()); let qualified_type = decorate_type( @@ -457,7 +457,7 @@ struct ExpandedVariant<'a> { is_default_variant: bool, } -impl<'a> ExpandedVariant<'a> { +impl ExpandedVariant<'_> { fn render(&self) -> TokenStream { let name_ident = Ident::new(&self.name, Span::call_site()); let optional_type_ident = self.variant_type.as_ref().map(|variant_type| { diff --git a/graphql_client_codegen/src/generated_module.rs b/graphql_client_codegen/src/generated_module.rs index 4148d7e5..b225d001 100644 --- a/graphql_client_codegen/src/generated_module.rs +++ b/graphql_client_codegen/src/generated_module.rs @@ -32,7 +32,7 @@ pub(crate) struct GeneratedModule<'a> { pub options: &'a crate::GraphQLClientCodegenOptions, } -impl<'a> GeneratedModule<'a> { +impl GeneratedModule<'_> { /// Generate the items for the variables and the response that will go inside the module. fn build_impls(&self) -> Result { Ok(crate::codegen::response_for_query(