From a67fae5c44ab0dca57d0e9ea713ba3b109ddb3ab Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 17 Mar 2026 21:57:34 +0100 Subject: [PATCH] refactor: use explicit empty array type for Windows service start arguments Replace inline empty array literal with explicitly typed empty_args variable to satisfy Rust type inference requirements for service.start() call. --- desktop-client/tunnel-helper/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop-client/tunnel-helper/src/main.rs b/desktop-client/tunnel-helper/src/main.rs index a9a6b16..a2f6bc8 100644 --- a/desktop-client/tunnel-helper/src/main.rs +++ b/desktop-client/tunnel-helper/src/main.rs @@ -260,7 +260,8 @@ fn install_windows_service() -> Result<(), String> { }) .map_err(|err| format!("Unable to install NexaVPN tunnel service: {err}"))?; - let _ = service.start(&[]); + let empty_args: [&str; 0] = []; + let _ = service.start(&empty_args); Ok(()) }