From 3f5a2d29a83b939351a47862e0da17b2c2f4a7da Mon Sep 17 00:00:00 2001 From: lagudomeze Date: Mon, 1 Jun 2020 10:53:34 +0800 Subject: [PATCH] Update graphql.rs --- async-graphql-tide/tests/graphql.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-graphql-tide/tests/graphql.rs b/async-graphql-tide/tests/graphql.rs index b08c2ccc..7d044404 100644 --- a/async-graphql-tide/tests/graphql.rs +++ b/async-graphql-tide/tests/graphql.rs @@ -116,7 +116,7 @@ fn hello() -> Result<()> { let schema = req.state().schema.clone(); let name = &req .header(&"name".parse().unwrap()) - .and_then(|values| values.first().map(|value| value.to_string())); + .and_then(|values| values.get(0).map(|value| value.to_string())); async_graphql_tide::graphql(req, schema, |mut query_builder| { if let Some(name) = name {