Some code style corrections [skip ci]

This commit is contained in:
tyranron 2022-08-11 18:23:46 +03:00
parent fea722b196
commit 37257934b7
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0
2 changed files with 36 additions and 36 deletions

View file

@ -634,8 +634,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::Type<#inf, #sv, #bh> for #ty impl #impl_gens ::juniper::resolve::Type<#inf, #sv, #bh>
#where_clause for #ty #where_clause
{ {
fn meta<'__r, '__ti: '__r>( fn meta<'__r, '__ti: '__r>(
registry: &mut ::juniper::Registry<'__r, #sv>, registry: &mut ::juniper::Registry<'__r, #sv>,
@ -669,8 +669,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::TypeName<#inf, #bh> for #ty impl #impl_gens ::juniper::resolve::TypeName<#inf, #bh>
#where_clause for #ty #where_clause
{ {
fn type_name(_: &#inf) -> &'static str { fn type_name(_: &#inf) -> &'static str {
<Self as ::juniper::reflect::BaseType<#bh>>::NAME <Self as ::juniper::reflect::BaseType<#bh>>::NAME
@ -1035,8 +1035,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::ToInputValue<#sv, #bh> for #ty impl #impl_gens ::juniper::resolve::ToInputValue<#sv, #bh>
#where_clause for #ty #where_clause
{ {
fn to_input_value(&self) -> ::juniper::graphql::InputValue<#sv> { fn to_input_value(&self) -> ::juniper::graphql::InputValue<#sv> {
match self { match self {
@ -1106,23 +1106,23 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::BaseType<#bh> for #ty impl #impl_gens ::juniper::reflect::BaseType<#bh>
#where_clause for #ty #where_clause
{ {
const NAME: ::juniper::reflect::Type = #name; const NAME: ::juniper::reflect::Type = #name;
} }
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::BaseSubTypes<#bh> for #ty impl #impl_gens ::juniper::reflect::BaseSubTypes<#bh>
#where_clause for #ty #where_clause
{ {
const NAMES: ::juniper::reflect::Types = const NAMES: ::juniper::reflect::Types =
&[<Self as ::juniper::reflect::BaseType<#bh>>::NAME]; &[<Self as ::juniper::reflect::BaseType<#bh>>::NAME];
} }
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::WrappedType<#bh> for #ty impl #impl_gens ::juniper::reflect::WrappedType<#bh>
#where_clause for #ty #where_clause
{ {
const VALUE: ::juniper::reflect::WrappedValue = const VALUE: ::juniper::reflect::WrappedValue =
::juniper::reflect::wrap::SINGULAR; ::juniper::reflect::wrap::SINGULAR;

View file

@ -535,8 +535,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::TypeName<#inf, #bh> for #ty impl #impl_gens ::juniper::resolve::TypeName<#inf, #bh>
#where_clause for #ty #where_clause
{ {
fn type_name(_: &#inf) -> &'static str { fn type_name(_: &#inf) -> &'static str {
<Self as ::juniper::reflect::BaseType<#bh>>::NAME <Self as ::juniper::reflect::BaseType<#bh>>::NAME
@ -573,8 +573,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::Type<#inf, #sv, #bh> for #ty impl #impl_gens ::juniper::resolve::Type<#inf, #sv, #bh>
#where_clause for #ty #where_clause
{ {
fn meta<'__r, '__ti: '__r>( fn meta<'__r, '__ti: '__r>(
registry: &mut ::juniper::Registry<'__r, #sv>, registry: &mut ::juniper::Registry<'__r, #sv>,
@ -782,8 +782,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::ToInputValue<#sv, #bh> for #ty impl #impl_gens ::juniper::resolve::ToInputValue<#sv, #bh>
#where_clause for #ty #where_clause
{ {
fn to_input_value(&self) -> ::juniper::graphql::InputValue<#sv> { fn to_input_value(&self) -> ::juniper::graphql::InputValue<#sv> {
#body #body
@ -901,8 +901,8 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::resolve::ScalarToken<#sv, #bh> for #ty impl #impl_gens ::juniper::resolve::ScalarToken<#sv, #bh>
#where_clause for #ty #where_clause
{ {
fn parse_scalar_token( fn parse_scalar_token(
token: ::juniper::parser::ScalarToken<'_>, token: ::juniper::parser::ScalarToken<'_>,
@ -969,23 +969,23 @@ impl Definition {
quote! { quote! {
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::BaseType<#bh> for #ty impl #impl_gens ::juniper::reflect::BaseType<#bh>
#where_clause for #ty #where_clause
{ {
const NAME: ::juniper::reflect::Type = #name; const NAME: ::juniper::reflect::Type = #name;
} }
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::BaseSubTypes<#bh> for #ty impl #impl_gens ::juniper::reflect::BaseSubTypes<#bh>
#where_clause for #ty #where_clause
{ {
const NAMES: ::juniper::reflect::Types = const NAMES: ::juniper::reflect::Types =
&[<Self as ::juniper::reflect::BaseType<#bh>>::NAME]; &[<Self as ::juniper::reflect::BaseType<#bh>>::NAME];
} }
#[automatically_derived] #[automatically_derived]
impl #impl_gens ::juniper::reflect::WrappedType<#bh> for #ty impl #impl_gens ::juniper::reflect::WrappedType<#bh>
#where_clause for #ty #where_clause
{ {
const VALUE: ::juniper::reflect::WrappedValue = const VALUE: ::juniper::reflect::WrappedValue =
::juniper::reflect::wrap::SINGULAR; ::juniper::reflect::wrap::SINGULAR;