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 385bd16d24
commit 1aef56244f

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> {