Ignore faulty lint

This commit is contained in:
Luca Palmieri 2021-12-28 17:50:44 +01:00
parent 9d13e57f4e
commit a4d95d8749

View file

@ -7,6 +7,7 @@ pub struct Parameters {
subscription_token: String, subscription_token: String,
} }
#[allow(clippy::async_yields_async)]
#[tracing::instrument(name = "Confirm a pending subscriber", skip(parameters, pool))] #[tracing::instrument(name = "Confirm a pending subscriber", skip(parameters, pool))]
pub async fn confirm(parameters: web::Query<Parameters>, pool: web::Data<PgPool>) -> HttpResponse { pub async fn confirm(parameters: web::Query<Parameters>, pool: web::Data<PgPool>) -> HttpResponse {
let id = match get_subscriber_id_from_token(&pool, &parameters.subscription_token).await { let id = match get_subscriber_id_from_token(&pool, &parameters.subscription_token).await {