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 22//!
33//! This crate reexports all you need from graphql-client, so you do not need any other explicit dependencies.
44
5- // #![deny(warnings)]
5+ #![ deny( warnings) ]
66#![ deny( missing_docs) ]
77
8- #[ macro_use]
9- pub extern crate graphql_client;
10- extern crate js_sys;
11- #[ macro_use]
12- extern crate wasm_bindgen;
13-
148use failure:: * ;
159use futures:: { Future , IntoFuture } ;
16- pub use graphql_client:: GraphQLQuery ;
10+ pub use graphql_client:: { self , GraphQLQuery } ;
1711use log:: * ;
1812use std:: collections:: HashMap ;
1913use wasm_bindgen:: { JsCast , JsValue } ;
@@ -112,7 +106,7 @@ impl Client {
112106 // "Request constructor threw");
113107 } )
114108 . and_then ( move |( window, request) | {
115- let mut headers = request. headers ( ) ;
109+ let headers = request. headers ( ) ;
116110 headers
117111 . set ( "Content-Type" , "application/json" )
118112 . 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> {
8080 } )
8181 . map_err ( |err| {
8282 panic ! ( "{:?}" , err) ;
83- JsValue :: NULL
8483 } )
8584}
8685
You can’t perform that action at this time.
0 commit comments