Skip to content

Commit

Permalink
relax bounds on free fn
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Jan 12, 2021
1 parent e879f76 commit 5ee4fd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tower/src/util/future_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ use tower_service::Service;
///
/// This will most likely come up if you're calling `future_service` with an async block. In that
/// case you can use `Box::pin(async { ... })` as shown in the example.
pub fn future_service<F, S, R, E>(future: F) -> FutureService<F, S>
pub fn future_service<F, S, E>(future: F) -> FutureService<F, S>
where
F: Future<Output = Result<S, E>> + Unpin,
S: Service<R, Error = E>,
{
FutureService::new(future)
}
Expand Down

0 comments on commit 5ee4fd3

Please sign in to comment.