From 5bc081d61d07dbaa97d0785bcde2a69d4d449ce2 Mon Sep 17 00:00:00 2001 From: ruv Date: Sat, 23 May 2026 15:38:46 -0400 Subject: [PATCH] fix(adr-115/doctest): wrap ASCII endpoint tree in ```text fence (bridge.rs) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The module-level doc comment in matter/bridge.rs had a 4-space-indented ASCII tree diagram. Rustdoc parses any 4-space-indented block in a doc comment as a Rust code block (markdown indented-code-block syntax) and runs it as a doctest. The tree text isn't valid Rust → doctest fails. This broke the Rust Workspace Tests workflow on PR #778: test crates/.../src/matter/bridge.rs - matter::bridge (line 6) ... FAILED test result: FAILED. 0 passed; 1 failed error: doctest failed, to rerun pass `-p ... --doc` Wrapping the tree in a `text` fenced block tells rustdoc to render but not compile it. Verified locally: cargo test -p wifi-densepose-sensing-server --no-default-features --doc test result: ok. 0 passed; 0 failed; 1 ignored Refs PR #778, issue #776. Co-Authored-By: claude-flow --- .../src/matter/bridge.rs | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs b/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs index 7356ef22..c6b86308 100644 --- a/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs +++ b/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs @@ -3,15 +3,17 @@ //! Given a list of RuView nodes and the `EntityKind`s enabled for //! each, produce the Matter endpoint tree the SDK will materialise: //! -//! Endpoint 0 (root: BridgedDevicesAggregator) -//! Endpoint 1 (BridgedNode for ruview-node-0) -//! Endpoint 2 (OccupancySensor for presence + PersonCount attr) -//! Endpoint 3 (OccupancySensor for zone_kitchen) -//! Endpoint 4 (OccupancySensor for SomeoneSleeping) -//! Endpoint 5 (GenericSwitch for FallDetected) -//! … -//! Endpoint N (BridgedNode for ruview-node-1) -//! … +//! ```text +//! Endpoint 0 (root: BridgedDevicesAggregator) +//! Endpoint 1 (BridgedNode for ruview-node-0) +//! Endpoint 2 (OccupancySensor for presence + PersonCount attr) +//! Endpoint 3 (OccupancySensor for zone_kitchen) +//! Endpoint 4 (OccupancySensor for SomeoneSleeping) +//! Endpoint 5 (GenericSwitch for FallDetected) +//! … +//! Endpoint N (BridgedNode for ruview-node-1) +//! … +//! ``` //! //! Tree assembly is pure logic — no SDK calls. The SDK layer reads //! this struct and registers the matching clusters. Splitting this