From b057bd964ccd156f68bc43a3a8ed66cf3cb1cd7b Mon Sep 17 00:00:00 2001 From: wonfen Date: Sat, 26 Sep 2026 00:00:50 +0800 Subject: [PATCH] fix clippy --- src-tauri/src/cmd/service.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/cmd/service.rs b/src-tauri/src/cmd/service.rs index 71a286330..50a5e0182 100644 --- a/src-tauri/src/cmd/service.rs +++ b/src-tauri/src/cmd/service.rs @@ -12,7 +12,10 @@ use crate::{ #[serde(tag = "status", rename_all = "camelCase")] pub enum ServiceInstallOutcome { Installed, - Sidecar { reason: String }, + #[cfg(any(windows, test))] + Sidecar { + reason: String, + }, } async fn execute_service_operation_sync(status: ServiceStatus, error_code: &str) -> CmdResult {