From bf560e983a27f41076b6f7f0716879e3c62bf627 Mon Sep 17 00:00:00 2001 From: eth3lbert Date: Fri, 21 Feb 2025 18:21:24 +0800 Subject: [PATCH] controllers/krate/publish: Fix linting --- src/controllers/krate/publish.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/krate/publish.rs b/src/controllers/krate/publish.rs index fd124c9245e..81bbf5037f3 100644 --- a/src/controllers/krate/publish.rs +++ b/src/controllers/krate/publish.rs @@ -183,7 +183,7 @@ pub async fn publish(app: AppState, req: Parts, body: Body) -> AppResult) -> bool { - s.map_or(true, String::is_empty) + s.is_none_or(String::is_empty) } // It can have up to three elements per below conditions.