mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-23 00:00:15 +02:00
Require Sync for services (#2473)
Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
co-authored by
Jonas Platte
parent
19101f624d
commit
52fd139a86
@@ -165,7 +165,7 @@ pub struct IntoHandler<H, T, S> {
|
||||
|
||||
impl<H, T, S> Handler<T, S> for IntoHandler<H, T, S>
|
||||
where
|
||||
H: HandlerCallWithExtractors<T, S> + Clone + Send + 'static,
|
||||
H: HandlerCallWithExtractors<T, S> + Clone + Send + Sync + 'static,
|
||||
T: FromRequest<S> + Send + 'static,
|
||||
T::Rejection: Send,
|
||||
S: Send + Sync + 'static,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user