File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 2
2
//!
3
3
//! This crate reexports all you need from graphql-client, so you do not need any other explicit dependencies.
4
4
5
- // #![deny(warnings)]
5
+ #![ deny( warnings) ]
6
6
#![ deny( missing_docs) ]
7
7
8
- #[ macro_use]
9
- pub extern crate graphql_client;
10
- extern crate js_sys;
11
- #[ macro_use]
12
- extern crate wasm_bindgen;
13
-
14
8
use failure:: * ;
15
9
use futures:: { Future , IntoFuture } ;
16
- pub use graphql_client:: GraphQLQuery ;
10
+ pub use graphql_client:: { self , GraphQLQuery } ;
17
11
use log:: * ;
18
12
use std:: collections:: HashMap ;
19
13
use wasm_bindgen:: { JsCast , JsValue } ;
@@ -112,7 +106,7 @@ impl Client {
112
106
// "Request constructor threw");
113
107
} )
114
108
. and_then ( move |( window, request) | {
115
- let mut headers = request. headers ( ) ;
109
+ let headers = request. headers ( ) ;
116
110
headers
117
111
. set ( "Content-Type" , "application/json" )
118
112
. map_err ( |_| ClientError :: RequestError ) ?;
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ fn test_country() -> impl Future<Item = (), Error = JsValue> {
80
80
} )
81
81
. map_err ( |err| {
82
82
panic ! ( "{:?}" , err) ;
83
- JsValue :: NULL
84
83
} )
85
84
}
86
85
You can’t perform that action at this time.
0 commit comments