[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 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-11 07:01:37 +01:00
parent e5aa74a1b6
commit 832e42ca3b
@@ -29,7 +29,9 @@ use tokio::sync::broadcast;
use trx_core::rig::state::RigMode; use trx_core::rig::state::RigMode;
use uuid::Uuid; 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}; use trx_core::vchan::{VChanError, VChannelInfo, VirtualChannelManager};
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -80,6 +82,7 @@ pub struct SdrVirtualChannelManager {
center_hz: Arc<AtomicI64>, center_hz: Arc<AtomicI64>,
/// Pipeline slots 0..fixed_slot_count are reserved (primary + AIS). /// Pipeline slots 0..fixed_slot_count are reserved (primary + AIS).
/// Virtual channels occupy slots fixed_slot_count and above. /// Virtual channels occupy slots fixed_slot_count and above.
#[allow(dead_code)]
fixed_slot_count: usize, fixed_slot_count: usize,
/// Maximum total channels including the primary (enforced on `add_channel`). /// Maximum total channels including the primary (enforced on `add_channel`).
max_total: usize, max_total: usize,