Skip to content

Commit

Permalink
Move service impl static lifetime bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
ISibboI committed Dec 3, 2023
1 parent 6afdf9b commit 26b4123
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,16 @@ impl<SessionStoreConnectorError: Debug + Display, InnerError: Debug + Display> s
}

impl<
Inner,
Inner: 'static,
RequestBody: Send + 'static,
ResponseBody: Send + 'static,
ResponseBody: Send,
SessionData: Default + Debug + Send + Sync + 'static,
SessionStoreConnection: SessionStoreConnector<SessionData> + Clone + Send + Sync + 'static,
> Service<Request<RequestBody>> for Session<Inner, SessionData, SessionStoreConnection>
where
Inner:
Service<Request<RequestBody>, Response = Response<ResponseBody>> + Clone + Send + 'static,
Inner::Future: Send + 'static,
<SessionStoreConnection as SessionStoreConnector<SessionData>>::Error: Send + 'static,
Inner: Service<Request<RequestBody>, Response = Response<ResponseBody>> + Clone + Send,
Inner::Future: Send,
<SessionStoreConnection as SessionStoreConnector<SessionData>>::Error: Send,
{
type Response = Inner::Response;
type Error = SessionLayerError<
Expand Down

0 comments on commit 26b4123

Please sign in to comment.