fix: clippy is incorrect about his lint, axum explicitly says this is okay to do

This commit is contained in:
NinekoTheCat 2023-12-25 17:43:04 +01:00
parent 4628afe374
commit 8468be7802
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -654,7 +654,7 @@ fn server_server_routes() -> Router {
.ruma_route(server_server::claim_keys_route)
.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>(
host: Option<Host>,
request: axum::http::Request<T>,