Relax Iron handler context trait requirements
This commit is contained in:
parent
f7123ed9db
commit
e5167e1aae
1 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ use ::{InputValue, GraphQLType, RootNode, execute};
|
||||||
/// mapping.
|
/// mapping.
|
||||||
pub struct GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
pub struct GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
||||||
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
||||||
CtxT: Send + Sync + 'static,
|
CtxT: 'static,
|
||||||
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ pub struct GraphiQLHandler {
|
||||||
impl<CtxFactory, Query, Mutation, CtxT>
|
impl<CtxFactory, Query, Mutation, CtxT>
|
||||||
GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
||||||
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
||||||
CtxT: Send + Sync + 'static,
|
CtxT: 'static,
|
||||||
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
{
|
{
|
||||||
|
@ -149,7 +149,7 @@ impl<CtxFactory, Query, Mutation, CtxT>
|
||||||
Handler
|
Handler
|
||||||
for GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
for GraphQLHandler<CtxFactory, Query, Mutation, CtxT>
|
||||||
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
where CtxFactory: Fn(&mut Request) -> CtxT + Send + Sync + 'static,
|
||||||
CtxT: Send + Sync + 'static,
|
CtxT: 'static,
|
||||||
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
Query: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
Mutation: GraphQLType<CtxT> + Send + Sync + 'static,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue