Skip to content

Commit e08a14b

Browse files
branchseerclaude
andcommitted
fix(spawn): prefix unused child_pid parameter with underscore
The child_pid parameter is only used on Unix platforms within a #[cfg(unix)] block, causing an unused variable warning on other platforms. Prefix with underscore to indicate intentional unused. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 7903296 commit e08a14b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/vite_task/src/session/execute

crates/vite_task/src/session/execute/spawn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ pub struct SpawnTrackResult {
7474
/// - **Unix**: Manually forwards SIGINT to the child process using `kill()`.
7575
/// - **Windows**: Ctrl+C is automatically forwarded to child processes in the same
7676
/// console group, so no manual forwarding is needed.
77-
async fn wait_for_ctrl_c(child_pid: Option<u32>) {
77+
async fn wait_for_ctrl_c(_child_pid: Option<u32>) {
7878
let _ = tokio::signal::ctrl_c().await;
7979

8080
#[cfg(unix)]
81-
if let Some(pid) = child_pid {
81+
if let Some(pid) = _child_pid {
8282
// Forward SIGINT to child process on Unix.
8383
// The child may handle this signal and exit gracefully.
8484
let _ = nix::sys::signal::kill(

0 commit comments

Comments
 (0)