From a69159e56236d84fb5a9f4fb615d9c7b96187e46 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 31 Aug 2026 14:57:07 -0400 Subject: [PATCH] fmt: rustfmt breaks the tuple-index chain, and the desktop lane means it `cargo fmt --all --check` failed the desktop lane on one hunk in the new `client_headers_identify_app_and_protocol` test. Clippy and every test passed; only the formatter objected. rustfmt splits `client_headers()[0].1.starts_with(..)` across lines because an index followed by a tuple field followed by a call is a three-element chain, and it will not keep one on a single line inside a macro argument regardless of width. This is rustfmt's own output, pasted back. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01K3MMqUtzX1TJgA1oypvm1c --- core/src/sync/compat.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/sync/compat.rs b/core/src/sync/compat.rs index 19c604b..f1e6a1d 100644 --- a/core/src/sync/compat.rs +++ b/core/src/sync/compat.rs @@ -411,7 +411,9 @@ mod tests { // this one for the OnceLock, and whichever lost would see the other's name. // One test, both branches, in order. assert!( - client_headers()[0].1.starts_with("thoughtsync-unidentified/"), + client_headers()[0] + .1 + .starts_with("thoughtsync-unidentified/"), "a host that never introduced itself must say so" );