mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2026-02-05 08:11:24 +01:00
Add a couple extra Sync bounds
Not necessary right now, but required for axum 0.8.
This commit is contained in:
parent
40da74f28c
commit
a3da77ce2c
2 changed files with 4 additions and 2 deletions
|
|
@ -209,13 +209,14 @@ struct ServerSpawner<'cfg, M> {
|
|||
|
||||
impl<'cfg, M> ServerSpawner<'cfg, M>
|
||||
where
|
||||
M: Layer<Route> + Clone + Send + 'static,
|
||||
M: Layer<Route> + Clone + Send + Sync + 'static,
|
||||
M::Service: Service<
|
||||
axum::extract::Request,
|
||||
Response = axum::response::Response,
|
||||
Error = Infallible,
|
||||
> + Clone
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static,
|
||||
<M::Service as Service<axum::extract::Request>>::Future: Send + 'static,
|
||||
{
|
||||
|
|
@ -936,7 +937,7 @@ macro_rules! impl_ruma_handler {
|
|||
where
|
||||
Req: IncomingRequest + Send + 'static,
|
||||
Resp: IntoResponse,
|
||||
F: FnOnce($($ty,)* Ar<Req>) -> Fut + Clone + Send + 'static,
|
||||
F: FnOnce($($ty,)* Ar<Req>) -> Fut + Clone + Send + Sync + 'static,
|
||||
Fut: Future<Output = Result<Resp, E>>
|
||||
+ Send,
|
||||
E: IntoResponse,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue