Skip to content

Fix clippy type_complexity in get_user_teams#16

Merged
alejandro-runner merged 1 commit intosynvya-stagingfrom
fix/admin-clippy-type-complexity
Apr 14, 2026
Merged

Fix clippy type_complexity in get_user_teams#16
alejandro-runner merged 1 commit intosynvya-stagingfrom
fix/admin-clippy-type-complexity

Conversation

@alejandro-runner
Copy link
Copy Markdown
Member

Summary

  • CI clippy failed on -D warnings due to the inline 9-tuple sqlx::query_as return type in get_user_teams (added in Add Synvya-themed support-admin user detail view #15).
  • Replaces it with a dedicated #[derive(sqlx::FromRow)] struct AuthorizationRow and updates the mapping into AdminAuthorization to use named fields.

Test plan

  • cargo clippy -p keycast_api --all-targets --all-features -- -D warnings -A deprecated passes locally
  • CI clippy job passes

🤖 Generated with Claude Code

Replace inline 9-tuple sqlx::query_as with a dedicated FromRow struct
(AuthorizationRow) to satisfy clippy::type_complexity under -D warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alejandro-runner alejandro-runner merged commit d348b7d into synvya-staging Apr 14, 2026
@alejandro-runner alejandro-runner deleted the fix/admin-clippy-type-complexity branch April 14, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant