chore: 修复 clippy 错误(loop never loops → if-let)并应用自动修复

This commit is contained in:
2026-06-10 10:17:25 +08:00
parent 19dc54f842
commit f7d0781090
15 changed files with 60 additions and 123 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ async fn llm_consumer_loop(
let session = session.clone();
let n = name.to_string();
let args = args_json.to_string();
let is_approved = approved_tool.as_ref().map_or(false, |t| t == &n);
let is_approved = approved_tool.as_ref() == Some(&n);
Box::pin(async move {
let ch = ChannelId::wechat(&uid);