[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:
2026-03-17 00:15:03 +01:00
parent 6eb2d5341f
commit 016d4ddfd7
4 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -420,7 +420,7 @@ impl PskReporterClient {
let include_templates = self.packets_sent < 3
|| self
.last_template_instant
.map_or(true, |t| t.elapsed() >= Duration::from_secs(TEMPLATE_RESEND_SECS));
.is_none_or(|t| t.elapsed() >= Duration::from_secs(TEMPLATE_RESEND_SECS));
let packet = self.make_packet(spots, include_templates)?;
self.socket
@@ -501,7 +501,7 @@ impl PskReporterClient {
fn pad_to_4(buf: &mut Vec<u8>) {
let rem = buf.len() % 4;
if rem != 0 {
buf.extend(std::iter::repeat(0u8).take(4 - rem));
buf.extend(std::iter::repeat_n(0u8, 4 - rem));
}
}