mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
Deny direct process spawn methods in Clippy
This commit is contained in:
@@ -82,6 +82,7 @@ impl ExecServerClient {
|
||||
pub(crate) async fn connect_stdio_command(
|
||||
args: StdioExecServerConnectArgs,
|
||||
) -> Result<Self, ExecServerError> {
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
let mut child = stdio_command_process(&args.command)
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
|
||||
@@ -298,6 +298,7 @@ fn spawn_command(
|
||||
command.stdin(std::process::Stdio::piped());
|
||||
command.stdout(std::process::Stdio::piped());
|
||||
command.stderr(std::process::Stdio::piped());
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
command.spawn().map_err(io_error)
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ where
|
||||
child.kill_on_drop(true);
|
||||
child.env("CODEX_HOME", codex_home.path());
|
||||
child.envs(env);
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
let mut child = child.spawn()?;
|
||||
|
||||
let websocket_url = read_listen_url_from_stdout(&mut child).await?;
|
||||
|
||||
@@ -89,6 +89,7 @@ fn run_delayed_output_after_exit_parent(release_path: &Path) {
|
||||
std::process::exit(1);
|
||||
}
|
||||
};
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
match Command::new(current_exe)
|
||||
.arg(DELAYED_OUTPUT_AFTER_EXIT_CHILD_ARG)
|
||||
.arg(release_path)
|
||||
|
||||
Reference in New Issue
Block a user