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:
@@ -168,6 +168,7 @@ fn run_git_command_with_timeout(
|
||||
context: &str,
|
||||
timeout: Duration,
|
||||
) -> Result<Output, String> {
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
let mut child = command
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
|
||||
@@ -523,6 +523,7 @@ fn run_git_command_with_timeout(
|
||||
context: &str,
|
||||
timeout: Duration,
|
||||
) -> Result<Output, String> {
|
||||
#[allow(clippy::disallowed_methods, reason = "Grandfathered-in usage.")]
|
||||
let mut child = command
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
|
||||
Reference in New Issue
Block a user