mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-20 17:47:19 +00:00
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.
This commit is contained in:
parent
9d4da7c0fd
commit
d8ff4dcca7
1 changed files with 1 additions and 1 deletions
|
|
@ -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(());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue