From d4170ad159c0bbae0dfc9dca04c0533e52673dc9 Mon Sep 17 00:00:00 2001 From: ruv Date: Fri, 12 Jun 2026 08:56:26 -0400 Subject: [PATCH] fix: revert config-dependent cargo-fix changes (kept only always-safe edits) cargo fix ran under --no-default-features and removed an import/mut that are 'unused' ONLY in the minimal build but genuinely USED in CI's full build (error[E0596]: cannot borrow result as mutable in desktop discovery.rs). Those are false-positive warnings in the minimal config. Reverted bridge.rs/ commissioning.rs/discovery.rs to origin/main; kept the always-safe edits (dead-code #[allow] notes + ClockGateDecision doc fields + camera macOS-only allow). Full-features build of all four crates: Finished, 0 errors. Co-Authored-By: claude-flow --- v2/crates/wifi-densepose-desktop/src/commands/discovery.rs | 2 +- v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs | 5 +++-- .../src/matter/commissioning.rs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/v2/crates/wifi-densepose-desktop/src/commands/discovery.rs b/v2/crates/wifi-densepose-desktop/src/commands/discovery.rs index 892ac66b..4608590e 100644 --- a/v2/crates/wifi-densepose-desktop/src/commands/discovery.rs +++ b/v2/crates/wifi-densepose-desktop/src/commands/discovery.rs @@ -355,7 +355,7 @@ pub async fn list_serial_ports() -> Result, String> { fn list_serial_ports_fallback() -> Result, String> { tracing::info!("Using fallback serial port listing"); - let result = Vec::new(); + let mut result = Vec::new(); // List /dev/cu.usb* devices on macOS #[cfg(target_os = "macos")] 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 778b28f2..c6b86308 100644 --- a/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs +++ b/v2/crates/wifi-densepose-sensing-server/src/matter/bridge.rs @@ -23,7 +23,8 @@ use crate::mqtt::discovery::EntityKind; use super::clusters::{ - matter_mapping, DEVICE_TYPE_AGGREGATOR, + matter_mapping, MatterClusterMapping, DEVICE_TYPE_AGGREGATOR, + DEVICE_TYPE_BRIDGED_NODE, }; /// One endpoint on the Matter device tree. @@ -106,7 +107,7 @@ pub fn build_bridge_tree(nodes: &[(String, String, Vec)]) -> BridgeT let ep_id = next_endpoint; next_endpoint += 1; - let ep = Endpoint { + let mut ep = Endpoint { endpoint_id: ep_id, device_type: m.device_type, label: format!("{:?}", entity), diff --git a/v2/crates/wifi-densepose-sensing-server/src/matter/commissioning.rs b/v2/crates/wifi-densepose-sensing-server/src/matter/commissioning.rs index 2886810a..6f57b057 100644 --- a/v2/crates/wifi-densepose-sensing-server/src/matter/commissioning.rs +++ b/v2/crates/wifi-densepose-sensing-server/src/matter/commissioning.rs @@ -40,7 +40,7 @@ //! vector `(passcode=20202021, discriminator=3840)` encodes to the //! Matter-published `34970112332`. - // re-export-only guard +use super::super::matter::clusters::VENDOR_ATTR_PERSON_COUNT as _; // re-export-only guard /// Inputs to setup-code generation. `passcode` and `discriminator` /// are usually random at first start and persisted in the