[fix](trx-rs): resolve all clippy warnings
- remote_client tests: add missing server_connected field and import AtomicBool in the test module - pskreporter: replace map_or(true, …) with is_none_or and repeat(x).take(n) with repeat_n(x, n) - dsp.rs, scheduler.rs: suppress intentional too_many_arguments with #[allow(clippy::too_many_arguments)] Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -666,6 +666,7 @@ fn parse_port(port_str: &str) -> Result<u16, String> {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{parse_remote_url, RemoteClientConfig, RemoteEndpoint, SharedSpectrum};
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::time::Duration;
|
||||
|
||||
@@ -849,6 +850,7 @@ mod tests {
|
||||
known_rigs: Arc::new(Mutex::new(Vec::new())),
|
||||
poll_interval: Duration::from_millis(100),
|
||||
spectrum: Arc::new(spectrum_tx),
|
||||
server_connected: Arc::new(AtomicBool::new(false)),
|
||||
},
|
||||
req_rx,
|
||||
state_tx,
|
||||
@@ -886,6 +888,7 @@ mod tests {
|
||||
known_rigs: Arc::new(Mutex::new(Vec::new())),
|
||||
poll_interval: Duration::from_millis(500),
|
||||
spectrum: Arc::new(spectrum_tx),
|
||||
server_connected: Arc::new(AtomicBool::new(false)),
|
||||
};
|
||||
let envelope = super::build_envelope(&config, trx_protocol::ClientCommand::GetState, None);
|
||||
assert_eq!(envelope.token.as_deref(), Some("secret"));
|
||||
|
||||
@@ -411,6 +411,7 @@ pub struct SchedulerStatus {
|
||||
pub last_bookmark_ids: Vec<String>,
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn apply_scheduler_target(
|
||||
rig_tx: &mpsc::Sender<RigRequest>,
|
||||
rig_id: &str,
|
||||
|
||||
Reference in New Issue
Block a user