Skip to content

Commit 970635a

Browse files
authored
chore(examples): Remove unnecessary bound (#2147)
1 parent 0f31e2e commit 970635a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/src/h2c/server.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ mod h2c {
8282
impl<S> Service<Request<Incoming>> for H2c<S>
8383
where
8484
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
85-
S::Future: Send + 'static,
86-
S::Error: Into<BoxError> + Sync + Send + 'static,
87-
S::Response: Send + 'static,
85+
S::Future: Send,
86+
S::Error: Into<BoxError> + 'static,
8887
{
8988
type Response = hyper::Response<Body>;
9089
type Error = hyper::Error;

0 commit comments

Comments
 (0)