diff --git a/src/agent/agent_loop.rs b/src/agent/agent_loop.rs index b470a27..9a3726a 100644 --- a/src/agent/agent_loop.rs +++ b/src/agent/agent_loop.rs @@ -874,8 +874,12 @@ mod tests { ®istry, ); - assert!(matches!(blocks.first(), Some(ContentBlock::Text { text }) if text == "先看这段文字")); - assert!(matches!(blocks.get(1), Some(ContentBlock::Text { text }) if text.contains("用户发来了一个文件"))); + assert!( + matches!(blocks.first(), Some(ContentBlock::Text { text }) if text == "先看这段文字") + ); + assert!( + matches!(blocks.get(1), Some(ContentBlock::Text { text }) if text.contains("用户发来了一个文件")) + ); } } diff --git a/src/channels/feishu.rs b/src/channels/feishu.rs index 0eeda51..e05eac0 100644 --- a/src/channels/feishu.rs +++ b/src/channels/feishu.rs @@ -1125,7 +1125,10 @@ impl FeishuChannel { .get("event_key") .and_then(|v| v.as_str()) .unwrap_or("unknown"); - (format!("[shared calendar event: {}]", event_key), Vec::new()) + ( + format!("[shared calendar event: {}]", event_key), + Vec::new(), + ) } else { ("[shared calendar event]".to_string(), Vec::new()) }