fix(adr-115/doctest): wrap ASCII endpoint tree in ```text fence (bridge.rs)

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 <ruv@ruv.net>
This commit is contained in:
ruv 2026-05-23 15:38:46 -04:00
parent 5ed8e34510
commit 5bc081d61d
1 changed files with 11 additions and 9 deletions

View File

@ -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