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 ```
This commit is contained in:
parent
0cc11a0dbe
commit
28763a5639
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue