From 28763a563902b07cba6fe487e5fd9e1c5ef566e7 Mon Sep 17 00:00:00 2001
From: Christian Legnitto <christian@legnitto.com>
Date: Tue, 20 Feb 2018 21:05:05 -0800
Subject: [PATCH] Fix warning in `iron_juniper`

The warning was:

```
warning: unnecessary parentheses around function argument
   --> juniper_iron/src/lib.rs:268:43
    |
268 |             _ => return Ok(Response::with((status::MethodNotAllowed))),
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: #[warn(unused_parens)] on by default
```
---
 juniper_iron/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juniper_iron/src/lib.rs b/juniper_iron/src/lib.rs
index f464d54b..d7a7d249 100644
--- a/juniper_iron/src/lib.rs
+++ b/juniper_iron/src/lib.rs
@@ -265,7 +265,7 @@ where
         let graphql_request = match req.method {
             method::Get => self.handle_get(&mut req)?,
             method::Post => self.handle_post(&mut req)?,
-            _ => return Ok(Response::with((status::MethodNotAllowed))),
+            _ => return Ok(Response::with(status::MethodNotAllowed)),
         };
 
         self.execute(&context, graphql_request)