Some code style corrections [skip ci]
This commit is contained in:
parent
fea722b196
commit
37257934b7
2 changed files with 36 additions and 36 deletions
|
@ -475,7 +475,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::graphql::InputType<#lt, #inf, #sv, #bh>
|
impl #impl_gens ::juniper::graphql::InputType<#lt, #inf, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn assert_input_type() {}
|
fn assert_input_type() {}
|
||||||
}
|
}
|
||||||
|
@ -504,7 +504,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::graphql::OutputType<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::graphql::OutputType<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn assert_output_type() {}
|
fn assert_output_type() {}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -778,7 +778,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::Value<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::Value<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn resolve_value(
|
fn resolve_value(
|
||||||
&self,
|
&self,
|
||||||
|
@ -849,7 +849,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::ValueAsync<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::ValueAsync<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn resolve_value_async<'__r>(
|
fn resolve_value_async<'__r>(
|
||||||
&'__r self,
|
&'__r self,
|
||||||
|
@ -935,7 +935,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::InputValue<#lt, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::InputValue<#lt, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
type Error = ::std::string::String;
|
type Error = ::std::string::String;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
|
@ -408,7 +408,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::graphql::InputType<#lt, #inf, #sv, #bh>
|
impl #impl_gens ::juniper::graphql::InputType<#lt, #inf, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn assert_input_type() {}
|
fn assert_input_type() {}
|
||||||
}
|
}
|
||||||
|
@ -437,7 +437,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::graphql::OutputType<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::graphql::OutputType<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn assert_output_type() {}
|
fn assert_output_type() {}
|
||||||
}
|
}
|
||||||
|
@ -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>,
|
||||||
|
@ -652,7 +652,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::Value<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::Value<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn resolve_value(
|
fn resolve_value(
|
||||||
&self,
|
&self,
|
||||||
|
@ -719,7 +719,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::ValueAsync<#inf, #cx, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::ValueAsync<#inf, #cx, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
fn resolve_value_async<'__r>(
|
fn resolve_value_async<'__r>(
|
||||||
&'__r self,
|
&'__r self,
|
||||||
|
@ -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
|
||||||
|
@ -842,7 +842,7 @@ impl Definition {
|
||||||
quote! {
|
quote! {
|
||||||
#[automatically_derived]
|
#[automatically_derived]
|
||||||
impl #impl_gens ::juniper::resolve::InputValue<#lt, #sv, #bh>
|
impl #impl_gens ::juniper::resolve::InputValue<#lt, #sv, #bh>
|
||||||
for #ty #where_clause
|
for #ty #where_clause
|
||||||
{
|
{
|
||||||
type Error = #error_ty;
|
type Error = #error_ty;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue