Require Sync for services (#2473)

Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
David Pedersen
2024-09-28 23:28:44 +02:00
committed by GitHub
co-authored by Jonas Platte
parent 19101f624d
commit 52fd139a86
14 changed files with 137 additions and 47 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ where
impl<S, L, R, Lt, Rt, M> Handler<(M, Lt, Rt), S> for Or<L, R, Lt, Rt, S>
where
L: HandlerCallWithExtractors<Lt, S> + Clone + Send + 'static,
R: HandlerCallWithExtractors<Rt, S> + Clone + Send + 'static,
L: HandlerCallWithExtractors<Lt, S> + Clone + Send + Sync + 'static,
R: HandlerCallWithExtractors<Rt, S> + Clone + Send + Sync + 'static,
Lt: FromRequestParts<S> + Send + 'static,
Rt: FromRequest<S, M> + Send + 'static,
Lt::Rejection: Send,