From 8abe2283d766b0e3b89c0c49a566d65ceec81e03 Mon Sep 17 00:00:00 2001 From: Jai A Date: Thu, 16 Jan 2025 17:49:26 -0800 Subject: [PATCH] Fix clippy --- apps/labrinth/src/routes/internal/billing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index 8d313a4d..d6dc71bb 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -880,11 +880,11 @@ pub async fn active_servers( ) -> Result { let master_key = dotenvy::var("PYRO_API_KEY")?; - if !req + if req .head() .headers() .get("X-Master-Key") - .is_some_and(|it| it.as_bytes() == master_key.as_bytes()) + .is_none_or(|it| it.as_bytes() != master_key.as_bytes()) { return Err(ApiError::CustomAuthentication( "Invalid master key".to_string(),