From 683cb5033319599a162f2a2ca608a5035cc6c67a Mon Sep 17 00:00:00 2001 From: Trezy Date: Fri, 13 Feb 2026 13:51:09 -0600 Subject: [PATCH] fix: remove unused did field from AdminAuth --- src/admin/auth.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/admin/auth.rs b/src/admin/auth.rs index f9cb265..dd159bb 100644 --- a/src/admin/auth.rs +++ b/src/admin/auth.rs @@ -9,16 +9,7 @@ use crate::error::AppError; /// (same as `Claims`), then checks if the returned DID exists in the `admins` /// table. If no admins exist yet, the first authenticated user is /// auto-bootstrapped as the initial admin. -pub struct AdminAuth { - did: String, -} - -impl AdminAuth { - /// The authenticated admin's DID. - pub fn did(&self) -> &str { - &self.did - } -} +pub struct AdminAuth; impl FromRequestParts for AdminAuth { type Rejection = AppError; @@ -68,6 +59,6 @@ impl FromRequestParts for AdminAuth { .await; }); - Ok(AdminAuth { did }) + Ok(AdminAuth) } } -- 2.51.2