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:
Ahmed Ibrahim
2026-03-02 13:09:44 -07:00
parent 1b93ac0283
commit 6476bd42f7

View File

@@ -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() {