fix(docs): escape <no body> in mcp doc-comment so rustdoc accepts it

CI Documentation job was failing with `error: unclosed HTML tag 'no'` at
crates/tui/src/mcp.rs:71. Rustdoc parses unescaped `<no body>` as an HTML
tag and `RUSTDOCFLAGS=-Dwarnings` (used in CI) promotes that to a hard
error. Reword the comment to refer to the literal string instead.
This commit is contained in:
Hunter Bown
2026-04-26 15:56:01 -05:00
parent fa99fb5124
commit 9758e26349
+1 -1
View File
@@ -68,7 +68,7 @@ fn redact_body_preview(body: &str) -> String {
/// Read up to `max_bytes` of a reqwest Response body and produce a single-line
/// excerpt suitable for an error message. Best-effort — if the body can't be
/// read, returns "<no body>".
/// read, returns the literal string `<no body>`.
async fn bounded_body_excerpt(response: reqwest::Response, max_bytes: usize) -> String {
let body_text = response.text().await.unwrap_or_default();
if body_text.is_empty() {