From 26b41230af342b04f3b9092ab8bf7eb4efad318d Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Sun, 3 Dec 2023 11:00:13 +0200 Subject: [PATCH] Move service impl static lifetime bounds. --- src/session/mod.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/session/mod.rs b/src/session/mod.rs index 96f75ae..ec92b52 100644 --- a/src/session/mod.rs +++ b/src/session/mod.rs @@ -288,17 +288,16 @@ impl s } impl< - Inner, + Inner: 'static, RequestBody: Send + 'static, - ResponseBody: Send + 'static, + ResponseBody: Send, SessionData: Default + Debug + Send + Sync + 'static, SessionStoreConnection: SessionStoreConnector + Clone + Send + Sync + 'static, > Service> for Session where - Inner: - Service, Response = Response> + Clone + Send + 'static, - Inner::Future: Send + 'static, - >::Error: Send + 'static, + Inner: Service, Response = Response> + Clone + Send, + Inner::Future: Send, + >::Error: Send, { type Response = Inner::Response; type Error = SessionLayerError<