From 23a47322fe284dad64e7d4ec7ed4c995057a8b84 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 6 May 2026 20:13:47 +0000 Subject: [PATCH] fix: collapse MacosNative validation match arm into pattern Replace the inner if-let-none check with destructured `None` patterns to satisfy clippy::collapsible_match (rust 1.95 stable). The catch-all `_` arm continues to handle the valid configurations. --- src/task.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/task.rs b/src/task.rs index 470aea4..e53930e 100644 --- a/src/task.rs +++ b/src/task.rs @@ -1140,15 +1140,13 @@ fn validate_app_config(app: &AppConfig) -> Result<(), AppError> { } } AppConfig::MacosNative { - bundle_id, - app_path, + bundle_id: None, + app_path: None, } => { - if bundle_id.is_none() && app_path.is_none() { - return Err(AppError::Config( - "MacosNative app: at least one of 'bundle_id' or 'app_path' must be specified." - .into(), - )); - } + return Err(AppError::Config( + "MacosNative app: at least one of 'bundle_id' or 'app_path' must be specified." + .into(), + )); } AppConfig::DockerImage { image, digest, .. } => { if image.is_empty() {