refactor(server): remove more 'static bounds on Server
This commit is contained in:
@@ -149,7 +149,6 @@ where
|
||||
IO: AsyncRead + AsyncWrite + Unpin + Send + 'static,
|
||||
S: MakeServiceRef<IO, Body, ResBody=B>,
|
||||
S::Error: Into<Box<dyn StdError + Send + Sync>>,
|
||||
S::Service: 'static,
|
||||
B: Payload,
|
||||
B::Data: Unpin,
|
||||
E: H2Exec<<S::Service as HttpService<Body>>::Future, B>,
|
||||
@@ -206,7 +205,6 @@ where
|
||||
IO: AsyncRead + AsyncWrite + Unpin + Send + 'static,
|
||||
S: MakeServiceRef<IO, Body, ResBody=B>,
|
||||
S::Error: Into<Box<dyn StdError + Send + Sync>>,
|
||||
S::Service: 'static,
|
||||
B: Payload,
|
||||
B::Data: Unpin,
|
||||
E: H2Exec<<S::Service as HttpService<Body>>::Future, B>,
|
||||
@@ -392,7 +390,6 @@ impl<I, E> Builder<I, E> {
|
||||
I::Conn: AsyncRead + AsyncWrite + Unpin + Send + 'static,
|
||||
S: MakeServiceRef<I::Conn, Body, ResBody=B>,
|
||||
S::Error: Into<Box<dyn StdError + Send + Sync>>,
|
||||
S::Service: 'static,
|
||||
B: Payload,
|
||||
B::Data: Unpin,
|
||||
E: NewSvcExec<I::Conn, S::Future, S::Service, E, NoopWatcher>,
|
||||
|
||||
Reference in New Issue
Block a user