diff --git a/backend/src/service.rs b/backend/src/service.rs index cf42c1d..a35ed79 100644 --- a/backend/src/service.rs +++ b/backend/src/service.rs @@ -81,7 +81,7 @@ pub(crate) trait Service { where S: 'static + Stream, { - Box::new(match response.status() { + match response.status() { StatusCode::OK => Box::new( response .json::() @@ -103,7 +103,7 @@ pub(crate) trait Service { ) as Box>, code => Box::new(futures::future::ok(HttpResponse::build(code).finish())) as Box>, - }) + } } } @@ -213,7 +213,7 @@ impl Service for GitLab { where S: 'static + Stream, { - Box::new(match response.status() { + match response.status() { StatusCode::OK => Box::new( response .json::() @@ -258,6 +258,6 @@ impl Service for GitLab { ) as Box>, code => Box::new(futures::future::ok(HttpResponse::build(code).finish())) as Box>, - }) + } } }