Skip to content

Commit 1ffd39e

Browse files
its-mashclaude
andcommitted
fix: remove unused CommandExt import in unix cfg blocks
tokio::process::Command already exposes process_group() natively on Unix — the std::os::unix::process::CommandExt trait import is redundant. Clippy on Linux CI catches this as an unused import (promoted to error with -D warnings). On Windows locally, #[cfg(unix)] blocks are compiled out entirely so clippy never sees them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 1d13da1 commit 1ffd39e

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

crates/mcpmux-gateway/src/pool/transport/stdio.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pub fn configure_child_process_platform(cmd: &mut Command) {
3737
}
3838
#[cfg(unix)]
3939
{
40-
use std::os::unix::process::CommandExt;
4140
cmd.process_group(0);
4241
}
4342
}

crates/mcpmux-mcp/src/transports.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ impl McpSession {
162162
}
163163
#[cfg(unix)]
164164
{
165-
use std::os::unix::process::CommandExt;
166165
cmd.process_group(0);
167166
}
168167
})

0 commit comments

Comments
 (0)