diff --git a/async-graphql-tide/Cargo.toml b/async-graphql-tide/Cargo.toml index 5ef5d4f0..3e70cc03 100644 --- a/async-graphql-tide/Cargo.toml +++ b/async-graphql-tide/Cargo.toml @@ -21,5 +21,5 @@ futures = "0.3.4" async-std = "1.5.0" [dev-dependencies] -smol = { version = "0.1", features = ["tokio02"] } +smol = { version = "0.1.10", features = ["tokio02"] } reqwest = "0.10.4" diff --git a/async-graphql-tide/tests/graphql.rs b/async-graphql-tide/tests/graphql.rs index 7d044404..f4bab3bc 100644 --- a/async-graphql-tide/tests/graphql.rs +++ b/async-graphql-tide/tests/graphql.rs @@ -115,7 +115,7 @@ fn hello() -> Result<()> { app.at("/").post(|req: Request| async move { let schema = req.state().schema.clone(); let name = &req - .header(&"name".parse().unwrap()) + .header("name") .and_then(|values| values.get(0).map(|value| value.to_string())); async_graphql_tide::graphql(req, schema, |mut query_builder| {