Skip to content

Commit ca9dbde

Browse files
authored
chore(server): Remove unnecessary static lifetime bound (#2153)
1 parent afb9df8 commit ca9dbde

File tree

1 file changed

+6
-6
lines changed
  • tonic/src/transport/server

1 file changed

+6
-6
lines changed

tonic/src/transport/server/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ impl<L> Server<L> {
537537
where
538538
L: Layer<S>,
539539
L::Service: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
540-
<<L as Layer<S>>::Service as Service<Request<Body>>>::Future: Send + 'static,
540+
<<L as Layer<S>>::Service as Service<Request<Body>>>::Future: Send,
541541
<<L as Layer<S>>::Service as Service<Request<Body>>>::Error:
542542
Into<crate::BoxError> + Send + 'static,
543543
I: Stream<Item = Result<IO, IE>>,
@@ -780,7 +780,7 @@ impl<L> Router<L> {
780780
where
781781
L: Layer<Routes> + Clone,
782782
L::Service: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
783-
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send + 'static,
783+
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send,
784784
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Error:
785785
Into<crate::BoxError> + Send,
786786
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
@@ -813,7 +813,7 @@ impl<L> Router<L> {
813813
where
814814
L: Layer<Routes>,
815815
L::Service: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
816-
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send + 'static,
816+
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send,
817817
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Error:
818818
Into<crate::BoxError> + Send,
819819
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
@@ -845,7 +845,7 @@ impl<L> Router<L> {
845845
L: Layer<Routes>,
846846

847847
L::Service: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
848-
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send + 'static,
848+
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send,
849849
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Error:
850850
Into<crate::BoxError> + Send,
851851
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
@@ -880,7 +880,7 @@ impl<L> Router<L> {
880880
F: Future<Output = ()>,
881881
L: Layer<Routes>,
882882
L::Service: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
883-
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send + 'static,
883+
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Future: Send,
884884
<<L as Layer<Routes>>::Service as Service<Request<Body>>>::Error:
885885
Into<crate::BoxError> + Send,
886886
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
@@ -986,7 +986,7 @@ impl<S, ResBody, IO> Service<&ServerIo<IO>> for MakeSvc<S, IO>
986986
where
987987
IO: Connected + 'static,
988988
S: Service<Request<Body>, Response = Response<ResBody>> + Clone + Send + 'static,
989-
S::Future: Send + 'static,
989+
S::Future: Send,
990990
S::Error: Into<crate::BoxError> + Send,
991991
ResBody: http_body::Body<Data = Bytes> + Send + 'static,
992992
ResBody::Error: Into<crate::BoxError>,

0 commit comments

Comments
 (0)