Skip to content

Commit b9168ba

Browse files
committed
Clean up all compiler warnings
1 parent 5001a62 commit b9168ba

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

graphql_client_web/src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
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-
148
use failure::*;
159
use futures::{Future, IntoFuture};
16-
pub use graphql_client::GraphQLQuery;
10+
pub use graphql_client::{self, GraphQLQuery};
1711
use log::*;
1812
use std::collections::HashMap;
1913
use 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)?;

graphql_client_web/tests/web.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)