style: fix rustfmt formatting in thread_ops channel auth check

https://claude.ai/code/session_014Njp7AM1n1P9vanizNhxws
This commit is contained in:
Claude
2026-03-23 08:07:12 +00:00
parent f6fdc16d23
commit 1b75295f36
+4 -3
View File
@@ -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,