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 <ruv@ruv.net>
This commit is contained in:
ruv 2026-06-12 08:56:26 -04:00
parent 0d6c20c278
commit d4170ad159
3 changed files with 5 additions and 4 deletions

View File

@ -355,7 +355,7 @@ pub async fn list_serial_ports() -> Result<Vec<SerialPortInfo>, String> {
fn list_serial_ports_fallback() -> Result<Vec<SerialPortInfo>, String> { fn list_serial_ports_fallback() -> Result<Vec<SerialPortInfo>, String> {
tracing::info!("Using fallback serial port listing"); tracing::info!("Using fallback serial port listing");
let result = Vec::new(); let mut result = Vec::new();
// List /dev/cu.usb* devices on macOS // List /dev/cu.usb* devices on macOS
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]

View File

@ -23,7 +23,8 @@
use crate::mqtt::discovery::EntityKind; use crate::mqtt::discovery::EntityKind;
use super::clusters::{ 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. /// One endpoint on the Matter device tree.
@ -106,7 +107,7 @@ pub fn build_bridge_tree(nodes: &[(String, String, Vec<EntityKind>)]) -> BridgeT
let ep_id = next_endpoint; let ep_id = next_endpoint;
next_endpoint += 1; next_endpoint += 1;
let ep = Endpoint { let mut ep = Endpoint {
endpoint_id: ep_id, endpoint_id: ep_id,
device_type: m.device_type, device_type: m.device_type,
label: format!("{:?}", entity), label: format!("{:?}", entity),

View File

@ -40,7 +40,7 @@
//! vector `(passcode=20202021, discriminator=3840)` encodes to the //! vector `(passcode=20202021, discriminator=3840)` encodes to the
//! Matter-published `34970112332`. //! 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` /// Inputs to setup-code generation. `passcode` and `discriminator`
/// are usually random at first start and persisted in the /// are usually random at first start and persisted in the