style(channels): apply rustfmt drift after main rebase

This commit is contained in:
Chummy 2026-02-18 00:41:30 +08:00
parent ef02f25c46
commit e2e431d9e7

View file

@ -1115,8 +1115,7 @@ impl Channel for TelegramChannel {
return Ok(()); return Ok(());
} }
self.send_text_chunks(&content, &message.recipient) self.send_text_chunks(&content, &message.recipient).await
.await
} }
async fn listen(&self, tx: tokio::sync::mpsc::Sender<ChannelMessage>) -> anyhow::Result<()> { async fn listen(&self, tx: tokio::sync::mpsc::Sender<ChannelMessage>) -> anyhow::Result<()> {
@ -1838,7 +1837,8 @@ mod tests {
#[test] #[test]
fn strip_tool_call_tags_removes_standard_tags() { fn strip_tool_call_tags_removes_standard_tags() {
let input = "Hello <tool>{\"name\":\"shell\",\"arguments\":{\"command\":\"ls\"}}</tool> world"; let input =
"Hello <tool>{\"name\":\"shell\",\"arguments\":{\"command\":\"ls\"}}</tool> world";
let result = strip_tool_call_tags(input); let result = strip_tool_call_tags(input);
assert_eq!(result, "Hello world"); assert_eq!(result, "Hello world");
} }
@ -1866,8 +1866,7 @@ mod tests {
#[test] #[test]
fn strip_tool_call_tags_handles_mixed_tags() { fn strip_tool_call_tags_handles_mixed_tags() {
let input = let input = "A <tool>a</tool> B <toolcall>b</toolcall> C <tool-call>c</tool-call> D";
"A <tool>a</tool> B <toolcall>b</toolcall> C <tool-call>c</tool-call> D";
let result = strip_tool_call_tags(input); let result = strip_tool_call_tags(input);
assert_eq!(result, "A B C D"); assert_eq!(result, "A B C D");
} }