From d8ff4dcca7b7114b462c034957aa88d002a78aa0 Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Sat, 18 Apr 2026 03:30:49 -0700 Subject: [PATCH] fix(desktop): pass extras slice to Command::args without deref cmd.args(*extras) on &[&str] fails to compile on stable Rust because [&str] is unsized. Drop the deref so the slice passes through. --- desktop/src-tauri/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src-tauri/src/cli.rs b/desktop/src-tauri/src/cli.rs index e2e2980..1c10ad6 100644 --- a/desktop/src-tauri/src/cli.rs +++ b/desktop/src-tauri/src/cli.rs @@ -159,7 +159,7 @@ pub fn spawn_in_terminal(_app: &AppHandle, subcommand: &[&str]) -> Result<()> { // followed by `bash -lc`. The allowlist guarantees no quoting is needed. let composite = command_parts.join(" "); let mut cmd = std::process::Command::new(program); - cmd.args(*extras); + cmd.args(extras); cmd.arg(&composite); cmd.spawn().with_context(|| format!("failed to launch {}", program))?; return Ok(());