diff --git a/juniper/src/macros/scalar.rs b/juniper/src/macros/scalar.rs index 32c8b988..7b1e8060 100644 --- a/juniper/src/macros/scalar.rs +++ b/juniper/src/macros/scalar.rs @@ -428,7 +428,7 @@ macro_rules! graphql_scalar { info: &'a Self::TypeInfo, selection_set: Option<&'a [$crate::Selection<'a, $crate::__juniper_insert_generic!($($scalar)+)>]>, executor: &'a $crate::Executor<'a, Self::Context, $crate::__juniper_insert_generic!($($scalar)+)>, - ) -> futures::future::BoxFuture<'async_trait, $crate::Value<$crate::__juniper_insert_generic!($($scalar)+)>> + ) -> $crate::BoxFuture<'async_trait, $crate::Value<$crate::__juniper_insert_generic!($($scalar)+)>> where 'a: 'async_trait, Self: 'async_trait, diff --git a/juniper_codegen/src/derive_enum.rs b/juniper_codegen/src/derive_enum.rs index 607d2d1f..b99090e2 100644 --- a/juniper_codegen/src/derive_enum.rs +++ b/juniper_codegen/src/derive_enum.rs @@ -218,7 +218,7 @@ pub fn impl_enum(ast: &syn::DeriveInput, is_internal: bool) -> TokenStream { info: &'a Self::TypeInfo, selection_set: Option<&'a [#juniper_path::Selection<__S>]>, executor: &'a #juniper_path::Executor, - ) -> futures::future::BoxFuture<'async_trait, #juniper_path::Value<__S>> + ) -> #juniper_path::BoxFuture<'async_trait, #juniper_path::Value<__S>> where 'a: 'async_trait, Self: 'async_trait diff --git a/juniper_codegen/src/util.rs b/juniper_codegen/src/util.rs index 3e25274f..86f3ad40 100644 --- a/juniper_codegen/src/util.rs +++ b/juniper_codegen/src/util.rs @@ -938,7 +938,7 @@ impl GraphQLTypeDefiniton { field: &'b str, args: &'b #juniper_crate_name::Arguments<#scalar>, executor: &'b #juniper_crate_name::Executor, - ) -> futures::future::BoxFuture<'async_trait, #juniper_crate_name::ExecutionResult<#scalar>> + ) -> #juniper_crate_name::BoxFuture<'async_trait, #juniper_crate_name::ExecutionResult<#scalar>> where #scalar: Send + Sync, 'b: 'async_trait,