Skip to content

Commit

Permalink
Remove Box on web module
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Apr 18, 2018
1 parent 96d9802 commit cbf10c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Service for StatusPages {
type Request = Request;
type Response = Response;
type Error = hyper::Error;
type Future = Box<Future<Item=Self::Response, Error=Self::Error>>;
type Future = future::FutureResult<Self::Response, Self::Error>;

fn call(&self, req: Request) -> Self::Future {
let resp = Response::new();
Expand Down Expand Up @@ -82,7 +82,7 @@ impl Service for StatusPages {
.with_header(ContentType::plaintext()),
};
debug!("{} {} [{}]", req.method(), req.path(), resp.status());
Box::new(future::ok(resp))
future::ok(resp)
}
}

Expand Down

0 comments on commit cbf10c1

Please sign in to comment.