@@ -24,7 +24,7 @@ use ::{InputValue, GraphQLType, RootNode, execute};
24
24
/// mapping.
25
25
pub struct GraphQLHandler < CtxFactory , Query , Mutation , CtxT >
26
26
where CtxFactory : Fn ( & mut Request ) -> CtxT + Send + Sync + ' static ,
27
- CtxT : Send + Sync + ' static ,
27
+ CtxT : ' static ,
28
28
Query : GraphQLType < CtxT > + Send + Sync + ' static ,
29
29
Mutation : GraphQLType < CtxT > + Send + Sync + ' static ,
30
30
{
@@ -40,14 +40,14 @@ pub struct GraphiQLHandler {
40
40
impl < CtxFactory , Query , Mutation , CtxT >
41
41
GraphQLHandler < CtxFactory , Query , Mutation , CtxT >
42
42
where CtxFactory : Fn ( & mut Request ) -> CtxT + Send + Sync + ' static ,
43
- CtxT : Send + Sync + ' static ,
43
+ CtxT : ' static ,
44
44
Query : GraphQLType < CtxT > + Send + Sync + ' static ,
45
45
Mutation : GraphQLType < CtxT > + Send + Sync + ' static ,
46
46
{
47
47
/// Build a new GraphQL handler
48
48
///
49
49
/// The context factory will receive the Iron request object and is
50
- /// expected to construct a context object for the given schema. This can
50
+ /// expected to construct a context object for the given schema. This can
51
51
/// be used to construct e.g. database connections or similar data that
52
52
/// the schema needs to execute the query.
53
53
pub fn new ( context_factory : CtxFactory , query : Query , mutation : Mutation ) -> Self {
@@ -149,7 +149,7 @@ impl<CtxFactory, Query, Mutation, CtxT>
149
149
Handler
150
150
for GraphQLHandler < CtxFactory , Query , Mutation , CtxT >
151
151
where CtxFactory : Fn ( & mut Request ) -> CtxT + Send + Sync + ' static ,
152
- CtxT : Send + Sync + ' static ,
152
+ CtxT : ' static ,
153
153
Query : GraphQLType < CtxT > + Send + Sync + ' static ,
154
154
Mutation : GraphQLType < CtxT > + Send + Sync + ' static ,
155
155
{
@@ -240,7 +240,7 @@ impl Handler for GraphiQLHandler {
240
240
#[ cfg( test) ]
241
241
mod tests {
242
242
use rustc_serialize:: json:: Json ;
243
-
243
+
244
244
use iron:: prelude:: * ;
245
245
use iron:: status;
246
246
use iron:: headers;
0 commit comments