Update for latest rust nightly
This commit is contained in:
parent
65a641c7d6
commit
1e348ea1bd
1 changed files with 7 additions and 7 deletions
|
@ -117,7 +117,7 @@ where
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
pub async fn execute_async<'a, CtxT, QueryT, MutationT>(
|
pub async fn execute_async<'a, CtxT, QueryT, MutationT>(
|
||||||
&'a self,
|
&'a self,
|
||||||
root_node: &'a RootNode<QueryT, MutationT, S>,
|
root_node: &'a RootNode<'_, QueryT, MutationT, S>,
|
||||||
context: &CtxT,
|
context: &CtxT,
|
||||||
) -> GraphQLBatchResponse<'a, S>
|
) -> GraphQLBatchResponse<'a, S>
|
||||||
where
|
where
|
||||||
|
@ -128,14 +128,14 @@ where
|
||||||
&GraphQLBatchRequest::Single(ref request) => {
|
&GraphQLBatchRequest::Single(ref request) => {
|
||||||
GraphQLBatchResponse::Single(request.execute_async(root_node, context).await)
|
GraphQLBatchResponse::Single(request.execute_async(root_node, context).await)
|
||||||
}
|
}
|
||||||
&GraphQLBatchRequest::Batch(ref requests) => GraphQLBatchResponse::Batch(
|
&GraphQLBatchRequest::Batch(ref requests) => {
|
||||||
let futures = requests
|
let futures = requests
|
||||||
.iter()
|
.iter()
|
||||||
.map(|request| request.execute(root_node, context))
|
.map(|request| request.execute_async(root_node, context))
|
||||||
.collect::<Vec<_>>(),
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
let responses = futures03::future::join_all(futures).await;
|
GraphQLBatchResponse::Batch(futures03::future::join_all(futures).await)
|
||||||
),
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ where
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
pub async fn execute_async<CtxT, QueryT, MutationT>(
|
pub async fn execute_async<CtxT, QueryT, MutationT>(
|
||||||
&self,
|
&self,
|
||||||
root_node: &RootNode<QueryT, MutationT, S>,
|
root_node: &RootNode<'_, QueryT, MutationT, S>,
|
||||||
context: &CtxT,
|
context: &CtxT,
|
||||||
) -> GraphQLResponse
|
) -> GraphQLResponse
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in a new issue