mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
codex: fix CI failure on PR #13265
Fix clippy::single_match in realtime handoff event handling. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -521,13 +521,10 @@ fn spawn_realtime_input_task(
|
||||
event = events.next_event() => {
|
||||
match event {
|
||||
Ok(Some(event)) => {
|
||||
match &event {
|
||||
RealtimeEvent::HandoffRequested(handoff) => {
|
||||
handoff_state
|
||||
.set_active_handoff(handoff.handoff_id.clone())
|
||||
.await;
|
||||
}
|
||||
_ => {}
|
||||
if let RealtimeEvent::HandoffRequested(handoff) = &event {
|
||||
handoff_state
|
||||
.set_active_handoff(handoff.handoff_id.clone())
|
||||
.await;
|
||||
}
|
||||
let should_stop = matches!(&event, RealtimeEvent::Error(_));
|
||||
if events_tx.send(event).await.is_err() {
|
||||
|
||||
Reference in New Issue
Block a user