From 832e42ca3bcab2574c2dfaecd773566cfb2ba6c0 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Wed, 11 Mar 2026 07:01:37 +0100 Subject: [PATCH] [fix](trx-backend-soapysdr): suppress unused import/field warnings in vchan_impl - VirtualSquelchConfig is only used in tests; gate import with #[cfg(test)] - fixed_slot_count is reserved for future use; mark #[allow(dead_code)] Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Stan Grams --- .../trx-backend/trx-backend-soapysdr/src/vchan_impl.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/trx-server/trx-backend/trx-backend-soapysdr/src/vchan_impl.rs b/src/trx-server/trx-backend/trx-backend-soapysdr/src/vchan_impl.rs index ea0e4d2..12487ca 100644 --- a/src/trx-server/trx-backend/trx-backend-soapysdr/src/vchan_impl.rs +++ b/src/trx-server/trx-backend/trx-backend-soapysdr/src/vchan_impl.rs @@ -29,7 +29,9 @@ use tokio::sync::broadcast; use trx_core::rig::state::RigMode; use uuid::Uuid; -use crate::dsp::{SdrPipeline, VirtualSquelchConfig}; +use crate::dsp::SdrPipeline; +#[cfg(test)] +use crate::dsp::VirtualSquelchConfig; use trx_core::vchan::{VChanError, VChannelInfo, VirtualChannelManager}; // --------------------------------------------------------------------------- @@ -80,6 +82,7 @@ pub struct SdrVirtualChannelManager { center_hz: Arc, /// Pipeline slots 0..fixed_slot_count are reserved (primary + AIS). /// Virtual channels occupy slots fixed_slot_count and above. + #[allow(dead_code)] fixed_slot_count: usize, /// Maximum total channels including the primary (enforced on `add_channel`). max_total: usize,