mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21: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
|
|
@ -402,6 +402,7 @@ async fn ar_from_request_inner(
|
||||||
impl<T, S> FromRequest<S> for Ar<T>
|
impl<T, S> FromRequest<S> for Ar<T>
|
||||||
where
|
where
|
||||||
T: IncomingRequest,
|
T: IncomingRequest,
|
||||||
|
S: Sync,
|
||||||
{
|
{
|
||||||
type Rejection = Error;
|
type Rejection = Error;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,13 +209,14 @@ struct ServerSpawner<'cfg, M> {
|
||||||
|
|
||||||
impl<'cfg, M> ServerSpawner<'cfg, M>
|
impl<'cfg, M> ServerSpawner<'cfg, M>
|
||||||
where
|
where
|
||||||
M: Layer<Route> + Clone + Send + 'static,
|
M: Layer<Route> + Clone + Send + Sync + 'static,
|
||||||
M::Service: Service<
|
M::Service: Service<
|
||||||
axum::extract::Request,
|
axum::extract::Request,
|
||||||
Response = axum::response::Response,
|
Response = axum::response::Response,
|
||||||
Error = Infallible,
|
Error = Infallible,
|
||||||
> + Clone
|
> + Clone
|
||||||
+ Send
|
+ Send
|
||||||
|
+ Sync
|
||||||
+ 'static,
|
+ 'static,
|
||||||
<M::Service as Service<axum::extract::Request>>::Future: Send + 'static,
|
<M::Service as Service<axum::extract::Request>>::Future: Send + 'static,
|
||||||
{
|
{
|
||||||
|
|
@ -936,7 +937,7 @@ macro_rules! impl_ruma_handler {
|
||||||
where
|
where
|
||||||
Req: IncomingRequest + Send + 'static,
|
Req: IncomingRequest + Send + 'static,
|
||||||
Resp: IntoResponse,
|
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>>
|
Fut: Future<Output = Result<Resp, E>>
|
||||||
+ Send,
|
+ Send,
|
||||||
E: IntoResponse,
|
E: IntoResponse,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue