From ef261deef68ff5ab9aca5c4963e2a3f9339b4c38 Mon Sep 17 00:00:00 2001 From: houseme Date: Tue, 9 Dec 2025 17:34:47 +0800 Subject: [PATCH] improve code for is admin (#1082) --- rustfs/src/admin/handlers.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rustfs/src/admin/handlers.rs b/rustfs/src/admin/handlers.rs index 878ad578..878bb3b9 100644 --- a/rustfs/src/admin/handlers.rs +++ b/rustfs/src/admin/handlers.rs @@ -90,7 +90,6 @@ pub mod trace; pub mod user; #[derive(Debug, Serialize)] -#[serde(rename_all = "PascalCase")] pub struct IsAdminResponse { pub is_admin: bool, pub access_key: String, @@ -174,7 +173,7 @@ impl Operation for IsAdminHandler { let response = IsAdminResponse { is_admin, access_key: access_key_to_check, - message: format!("User is {} an administrator", if is_admin { "" } else { "not" }), + message: format!("User is {}an administrator", if is_admin { "" } else { "not " }), }; let data = serde_json::to_vec(&response)