@@ -23,8 +23,8 @@ use std::{
23
23
use juniper:: {
24
24
futures:: {
25
25
channel:: oneshot,
26
- future:: { self , BoxFuture , Either , Future , FutureExt , TryFutureExt } ,
27
- stream:: { self , BoxStream , SelectAll , StreamExt } ,
26
+ future:: { self , BoxFuture , Either , Future , FutureExt as _ , TryFutureExt as _ } ,
27
+ stream:: { self , BoxStream , SelectAll , StreamExt as _ } ,
28
28
task:: { Context , Poll , Waker } ,
29
29
Sink , Stream ,
30
30
} ,
@@ -547,16 +547,21 @@ where
547
547
548
548
#[ cfg( test) ]
549
549
mod test {
550
- use std:: { convert:: Infallible , io} ;
550
+ use std:: { convert:: Infallible , io, sync :: Arc , time :: Duration } ;
551
551
552
552
use juniper:: {
553
- futures:: sink:: SinkExt ,
553
+ futures:: {
554
+ future:: { self , FutureExt as _} ,
555
+ sink:: SinkExt ,
556
+ stream:: { self , BoxStream , StreamExt as _} ,
557
+ } ,
554
558
graphql_input_value, graphql_object, graphql_subscription, graphql_value, graphql_vars,
555
559
parser:: { ParseError , Spanning } ,
556
- DefaultScalarValue , EmptyMutation , FieldError , FieldResult , RootNode , Variables ,
560
+ DefaultScalarValue , EmptyMutation , FieldError , FieldResult , GraphQLError , RootNode ,
561
+ Variables ,
557
562
} ;
558
563
559
- use super :: * ;
564
+ use super :: { Connection , ConnectionConfig , ConnectionErrorPayload , DataPayload , StartPayload } ;
560
565
561
566
struct Context ( i32 ) ;
562
567
0 commit comments