Add allow(unused_braces, unused_parens) attribute

This fixes false positive warnings for the stable compiler.
This commit is contained in:
William Myers 2020-06-11 14:36:38 -06:00
parent 2e9557ff1c
commit 76a0f66751
No known key found for this signature in database
GPG Key ID: 87AC27DE8462AB71

View File

@ -465,6 +465,7 @@ pub fn generate(object_args: &args::Object, item_impl: &mut ItemImpl) -> Result<
}
}
#[allow(unused_braces, unused_parens)]
#[#crate_name::async_trait::async_trait]
impl#generics #crate_name::ObjectType for #self_ty #where_clause {
async fn resolve_field(&self, ctx: &#crate_name::Context<'_>) -> #crate_name::Result<#crate_name::serde_json::Value> {