From 5654520901f38ccc8a126a6d2740886336372d91 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 1 Aug 2026 01:51:26 +0200 Subject: [PATCH] [fix](workspace): clear build and clippy warnings --- src/decoders/trx-wefax/src/image.rs | 3 ++- .../trx-backend/trx-backend-soapysdr/src/dsp/filter.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/decoders/trx-wefax/src/image.rs b/src/decoders/trx-wefax/src/image.rs index 3666bc66..fa391f4d 100644 --- a/src/decoders/trx-wefax/src/image.rs +++ b/src/decoders/trx-wefax/src/image.rs @@ -274,7 +274,8 @@ mod tests { // Pseudo-random noise vs gradient — correlation should be low. let noise: Vec = (0..256) - .map(|i| ((i * 1103515245 + 12345) as u32 >> 8 & 0xff) as u8) + .map(|i| (i as u32).wrapping_mul(1_103_515_245).wrapping_add(12_345)) + .map(|value| ((value >> 8) & 0xff) as u8) .collect(); let r = asm.correlation_with_last(&noise).expect("r"); assert!( diff --git a/src/trx-server/trx-backend/trx-backend-soapysdr/src/dsp/filter.rs b/src/trx-server/trx-backend/trx-backend-soapysdr/src/dsp/filter.rs index 1d5106e9..a8970d03 100644 --- a/src/trx-server/trx-backend/trx-backend-soapysdr/src/dsp/filter.rs +++ b/src/trx-server/trx-backend/trx-backend-soapysdr/src/dsp/filter.rs @@ -251,9 +251,9 @@ fn mul_freq_domain(buf: &mut [FftComplex], h_freq: &[FftComplex], scal unsafe { mul_freq_domain_neon(buf, h_freq, scale); } - return; } + #[cfg(not(target_arch = "aarch64"))] mul_freq_domain_scalar(buf, h_freq, scale); }