mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 10:56:41 +02:00
fix: clippy is incorrect about his lint, axum explicitly says this is okay to do
This commit is contained in:
parent
4628afe374
commit
8468be7802
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ fn server_server_routes() -> Router {
|
||||||
.ruma_route(server_server::claim_keys_route)
|
.ruma_route(server_server::claim_keys_route)
|
||||||
.route_layer(axum::middleware::from_fn(deny_if_not_allowed_by_acl))
|
.route_layer(axum::middleware::from_fn(deny_if_not_allowed_by_acl))
|
||||||
}
|
}
|
||||||
|
#[allow(clippy::future_not_send)]
|
||||||
pub async fn deny_if_not_allowed_by_acl<T>(
|
pub async fn deny_if_not_allowed_by_acl<T>(
|
||||||
host: Option<Host>,
|
host: Option<Host>,
|
||||||
request: axum::http::Request<T>,
|
request: axum::http::Request<T>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue