Fix inline fragment bug

This commit is contained in:
sunli 2020-04-02 20:41:09 +08:00
parent 4e74044c54
commit e6d219c44e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ pub fn generate(interface_args: &args::Interface, input: &DeriveInput) -> Result
if let #ident::#enum_name(obj) = self {
return #crate_name::collect_fields(ctx, obj, futures);
}
unreachable!()
return Ok(());
}
});
get_introspection_typename.push(quote! {

View File

@ -60,7 +60,7 @@ pub fn generate(interface_args: &args::Interface, input: &DeriveInput) -> Result
if let #ident::#enum_name(obj) = self {
return #crate_name::collect_fields(ctx, obj, futures);
}
unreachable!()
return Ok(());
}
});
get_introspection_typename.push(quote! {