chore: rustfmt fixups for app_members files

Trailing-comma format! cleanup from `cargo fmt --all`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
MechaCat02
2026-05-27 21:39:25 +02:00
parent d40ebf65a2
commit b7175cc581
2 changed files with 3 additions and 9 deletions

View File

@@ -184,9 +184,7 @@ async fn remove_member(
) -> Result<StatusCode, AppMembersApiError> { ) -> Result<StatusCode, AppMembersApiError> {
let app = resolve_app(&*s.apps, &id_or_slug).await?; let app = resolve_app(&*s.apps, &id_or_slug).await?;
require(s.authz.as_ref(), &principal, Capability::AppAdmin(app.id)).await?; require(s.authz.as_ref(), &principal, Capability::AppAdmin(app.id)).await?;
s.members s.members.remove(app.id, AdminUserId::from(user_id)).await?;
.remove(app.id, AdminUserId::from(user_id))
.await?;
Ok(StatusCode::NO_CONTENT) Ok(StatusCode::NO_CONTENT)
} }

View File

@@ -195,9 +195,7 @@ async fn patch_member_role(
role: AppRole, role: AppRole,
) -> axum_test::TestResponse { ) -> axum_test::TestResponse {
server server
.patch(&format!( .patch(&format!("/api/v1/admin/apps/{app_ident}/members/{user_id}",))
"/api/v1/admin/apps/{app_ident}/members/{user_id}",
))
.add_header("authorization", format!("Bearer {token}")) .add_header("authorization", format!("Bearer {token}"))
.json(&json!({ "role": role.as_str() })) .json(&json!({ "role": role.as_str() }))
.await .await
@@ -210,9 +208,7 @@ async fn remove_member(
user_id: AdminUserId, user_id: AdminUserId,
) -> axum_test::TestResponse { ) -> axum_test::TestResponse {
server server
.delete(&format!( .delete(&format!("/api/v1/admin/apps/{app_ident}/members/{user_id}",))
"/api/v1/admin/apps/{app_ident}/members/{user_id}",
))
.add_header("authorization", format!("Bearer {token}")) .add_header("authorization", format!("Bearer {token}"))
.await .await
} }