From 1b75295f36b3ba0404648709ef4f86a98b49a55f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Mar 2026 08:07:12 +0000 Subject: [PATCH] style: fix rustfmt formatting in thread_ops channel auth check https://claude.ai/code/session_014Njp7AM1n1P9vanizNhxws --- src/agent/thread_ops.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/agent/thread_ops.rs b/src/agent/thread_ops.rs index c5983ce7..5d649373 100644 --- a/src/agent/thread_ops.rs +++ b/src/agent/thread_ops.rs @@ -960,9 +960,10 @@ impl Agent { { let sess = session.lock().await; if let Some(thread) = sess.threads.get(&thread_id) { - let authorized = thread.source_channel.as_ref().is_none_or(|src| { - src == &message.channel || message.channel == "web" - }); + let authorized = thread + .source_channel + .as_ref() + .is_none_or(|src| src == &message.channel || message.channel == "web"); if !authorized { tracing::warn!( %thread_id,