From 548f90dc4824e5d7398bf23ce8ed5b143a6a8214 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim <219906144+aibrahim-oai@users.noreply.github.com> Date: Tue, 17 Mar 2026 21:57:32 +0000 Subject: [PATCH] codex: fix clippy single-match on PR #14902 Co-authored-by: Codex --- codex-rs/core/src/realtime_conversation.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/codex-rs/core/src/realtime_conversation.rs b/codex-rs/core/src/realtime_conversation.rs index cf7f008a60..13727d0b26 100644 --- a/codex-rs/core/src/realtime_conversation.rs +++ b/codex-rs/core/src/realtime_conversation.rs @@ -393,15 +393,14 @@ async fn stop_conversation_state( state.input_task.abort(); let _ = state.input_task.await; - match state.fanout_task.take() { - Some(fanout_task) => match fanout_task_stop { + if let Some(fanout_task) = state.fanout_task.take() { + match fanout_task_stop { RealtimeFanoutTaskStop::Abort => { fanout_task.abort(); let _ = fanout_task.await; } RealtimeFanoutTaskStop::Detach => {} - }, - None => {} + } } }