Skip to content

Commit 83704cb

Browse files
authored
controllers/krate/publish: Fix linting (#10643)
1 parent 2b45dcd commit 83704cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/krate/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub async fn publish(app: AppState, req: Parts, body: Body) -> AppResult<Json<Go
183183

184184
// Make sure required fields are provided
185185
fn empty(s: Option<&String>) -> bool {
186-
s.map_or(true, String::is_empty)
186+
s.is_none_or(String::is_empty)
187187
}
188188

189189
// It can have up to three elements per below conditions.

0 commit comments

Comments
 (0)