fix: silence unused detach flag on non-unix

This commit is contained in:
Alex Kotliarskyi
2026-01-16 18:28:10 -08:00
parent dec738534d
commit 68b1e1a93d

View File

@@ -103,7 +103,7 @@ async fn spawn_process_with_stdin_mode(
env: &HashMap<String, String>,
arg0: &Option<String>,
stdin_mode: PipeStdinMode,
detach_from_tty: bool,
#[cfg_attr(not(unix), allow(unused_variables))] detach_from_tty: bool,
) -> Result<SpawnedProcess> {
if program.is_empty() {
anyhow::bail!("missing program for pipe spawn");