fix(server): Remove unneeded 'static bound of Service on Connection (#1971)

This commit is contained in:
Steven Fackler
2019-10-11 19:22:36 -04:00
committed by Sean McArthur
parent 22695968d2
commit 4d14712643

View File

@@ -663,7 +663,7 @@ where
impl<I, B, S, E> Future for Connection<I, S, E>
where
S: Service<Body, ResBody=B> + 'static,
S: Service<Body, ResBody=B>,
S::Error: Into<Box<dyn StdError + Send + Sync>>,
I: AsyncRead + AsyncWrite + Unpin + 'static,
B: Payload + 'static,