mirror of
https://github.com/openai/codex.git
synced 2026-05-29 15:30:22 +00:00
Box retained stdio transport guard
Avoid the Windows clippy large-enum-variant failure while preserving the retained stdio child cleanup guard behavior. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -26,15 +26,17 @@ pub(crate) enum JsonRpcConnectionEvent {
|
||||
|
||||
pub(crate) enum JsonRpcTransport {
|
||||
Plain,
|
||||
Stdio { _transport: StdioTransport },
|
||||
Stdio {
|
||||
_transport: Box<StdioTransport>,
|
||||
},
|
||||
}
|
||||
|
||||
impl JsonRpcTransport {
|
||||
fn from_child_process(child_process: Child) -> Self {
|
||||
Self::Stdio {
|
||||
_transport: StdioTransport {
|
||||
_transport: Box::new(StdioTransport {
|
||||
child_process: Some(child_process),
|
||||
},
|
||||
}),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user