From 5b563f872b925f6d54b18708cb5ad523195a5968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 28 Nov 2023 14:37:58 +0100 Subject: [PATCH] Move the clippy attribute on the problematic part of the code --- meilisearch/src/routes/indexes/settings.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meilisearch/src/routes/indexes/settings.rs b/meilisearch/src/routes/indexes/settings.rs index 9fe94cad2..f5d98761d 100644 --- a/meilisearch/src/routes/indexes/settings.rs +++ b/meilisearch/src/routes/indexes/settings.rs @@ -1,5 +1,3 @@ -#![allow(clippy::redundant_closure_call)] - use actix_web::web::Data; use actix_web::{web, HttpRequest, HttpResponse}; use deserr::actix_web::AwebJson; @@ -80,6 +78,7 @@ macro_rules! make_setting_route { let body = body.into_inner(); + #[allow(clippy::redundant_closure_call)] $analytics(&body, &req); let new_settings = Settings {