Skip to content

Commit ab12bc3

Browse files
committed
Address review comments
1 parent 0289e8a commit ab12bc3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

graphql_client_web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "graphql_client_web"
3-
version = "0.1.0"
3+
version = "0.5.1"
44
authors = ["Tom Houlé <[email protected]>"]
55
edition = "2018"
66

graphql_client_web/src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
55
// #![deny(warnings)]
66
#![deny(missing_docs)]
7+
#![feature(non_exhaustive)]
78

89
#[macro_use]
910
pub extern crate graphql_client;
1011
#[macro_use]
1112
extern crate wasm_bindgen;
1213

14+
pub use graphql_client::GraphQLQuery;
1315
use failure::*;
1416
use futures::{Future, IntoFuture};
15-
pub use graphql_client::GraphQLQuery;
1617
use log::*;
17-
use wasm_bindgen::JsCast;
18-
use wasm_bindgen::JsValue;
18+
use std::collections::HashMap;
1919
use wasm_bindgen_futures::JsFuture;
20+
use wasm_bindgen::{JsCast, JsValue};
2021

2122
/// The main interface to the library.
2223
///
@@ -27,6 +28,7 @@ use wasm_bindgen_futures::JsFuture;
2728
/// - use it to perform queries with the [call] method
2829
pub struct Client {
2930
endpoint: String,
31+
headers: HashMap<String, String>,
3032
}
3133

3234
/// All the ways a request can go wrong.

graphql_client_web/tests/web.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use graphql_client_web::Client;
99
use wasm_bindgen::JsValue;
1010
use wasm_bindgen_test::*;
1111

12-
use std::panic;
13-
1412
use wasm_bindgen_test::wasm_bindgen_test_configure;
1513

1614
wasm_bindgen_test_configure!(run_in_browser);

0 commit comments

Comments
 (0)