Fix non-async resolvers with returns in the async case

This commit is contained in:
Christian Legnitto 2019-11-03 22:14:44 -08:00
parent ef2277c80f
commit 0929bad163

View file

@ -901,7 +901,7 @@ impl GraphQLTypeDefiniton {
quote!(
#name => {
let res #_type = { #code };
let res #_type = (||{ #code })();
let res2 = #juniper_crate_name::IntoResolvable::into(
res,
executor.context()