remove unnecessary moves (#740)
This commit is contained in:
parent
45c16acc6e
commit
368ea6f96f
1 changed files with 2 additions and 2 deletions
|
@ -26,11 +26,11 @@ async fn main() {
|
|||
let root_node = root_node.clone();
|
||||
let ctx = db.clone();
|
||||
|
||||
async move {
|
||||
async {
|
||||
Ok::<_, hyper::Error>(service_fn(move |req| {
|
||||
let root_node = root_node.clone();
|
||||
let ctx = ctx.clone();
|
||||
async move {
|
||||
async {
|
||||
match (req.method(), req.uri().path()) {
|
||||
(&Method::GET, "/") => juniper_hyper::graphiql("/graphql", None).await,
|
||||
(&Method::GET, "/graphql") | (&Method::POST, "/graphql") => {
|
||||
|
|
Loading…
Reference in a new issue