From 8a18026a13acee7514e151ed496d38d218a89682 Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Thu, 22 Oct 2026 15:57:23 +0100 Subject: [PATCH] #3692: rustfmt type_text Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/mcp/src/tools.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/mcp/src/tools.rs b/crates/mcp/src/tools.rs index 3a46629b2f..c666fbe3f9 100644 --- a/crates/mcp/src/tools.rs +++ b/crates/mcp/src/tools.rs @@ -238,9 +238,7 @@ pub fn call_tool(b: &mut dyn Backend, name: &str, a: &Value) -> ToolResult { let t = t.replace("\r\n", "\n").replace('\r', "\n"); let lines = t.split(['\n', '\u{2029}']).count(); if lines > MAX_TYPED_PARAGRAPHS { - return ToolResult::error(format!( - "`text` has {lines} lines; type at most {MAX_TYPED_PARAGRAPHS} paragraphs per call" - )); + return ToolResult::error(format!("`text` has {lines} lines; type at most {MAX_TYPED_PARAGRAPHS} paragraphs per call")); } wrap(exec(b, "text.insert", json!({"text": t.replace('\n', "\r"), "raw": true}))) } else {