Import process_alive only in the Windows-only test that uses it, so clippy passes on macOS and Linux

AI Assisted
This commit is contained in:
jparkerweb committed 2026-10-26 20:27:33 -07:00
1 parent 78153576a9
commit dd2ab86584
1 file changed
+2 -1
+2 -1
View File
@@ -7,7 +7,7 @@ use std::time::{Duration, Instant};
use plan2code_app_lib::pty_host::{PtyHost, StartOptions};
mod common;
use common::{fake_agent, process_alive};
use common::fake_agent;
fn start_fake() -> (PtyHost, Receiver<Vec<u8>>) {
let (tx, rx) = channel();
@@ -109,6 +109,7 @@ fn kill_ends_a_running_step() {
#[cfg(windows)]
#[test]
fn kill_ends_a_cmd_wrapped_grandchild_too() {
use common::process_alive;
use plan2code_app_lib::agents::windows_command;
use std::fs;