juniper_codegen: macro hygiene for graphql_subscription (#948)

Fully qualify `std::result::Result` such that it doesn't
collide with locally defined type aliases for `Result`.
This improves macro hygiene.
This commit is contained in:
Filip Gospodinov 2021-06-27 01:15:41 +02:00 committed by GitHub
parent d4fda786ba
commit de4c0e9088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1399,7 +1399,7 @@ impl GraphQLTypeDefiniton {
executor: &'ref_e ::juniper::Executor<'ref_e, 'e, Self::Context, #scalar>,
) -> std::pin::Pin<Box<
dyn ::juniper::futures::future::Future<
Output = Result<
Output = std::result::Result<
::juniper::Value<::juniper::ValuesStream<'res, #scalar>>,
::juniper::FieldError<#scalar>
>