From 8cabc6af701a2429ea2e30a7f4e26789d627ad69 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 3 Jun 2026 01:12:36 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20clippy=20=E2=80=94=20redundant=20closure?= =?UTF-8?q?=20in=20AdminApiUser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/presentation/src/extractors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/presentation/src/extractors.rs b/crates/presentation/src/extractors.rs index e6209c0..8b92266 100644 --- a/crates/presentation/src/extractors.rs +++ b/crates/presentation/src/extractors.rs @@ -117,7 +117,7 @@ where .user .find_by_id(&user_id) .await - .map_err(|e| ApiError(e))? + .map_err(ApiError)? .ok_or_else(|| ApiError(DomainError::NotFound("user not found".into())))?; match user.role() { domain::models::UserRole::Admin => Ok(AdminApiUser(user_id)),