fix: clippy — redundant closure in AdminApiUser
Some checks failed
CI / Check / Test (push) Has been cancelled

This commit is contained in:
2026-06-03 01:12:36 +02:00
parent e378191045
commit 8cabc6af70

View File

@@ -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)),