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.
This commit is contained in:
2026-03-17 21:57:34 +01:00
parent 357c35de42
commit a67fae5c44

View File

@@ -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(())
}