Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Laignel <fengalin@free.fr>2021-06-05 01:16:05 +0300
committerFrançois Laignel <fengalin@free.fr>2021-06-05 11:36:22 +0300
commit5439f14e57ad865e8e19b45ac191ed98743d8e2b (patch)
treebe5b86826bb55e6d25121c3ad65560f216844f6c /audio/csound
parent8f8f5bdff70da01e8c518fca3a7a4a5b72a97c68 (diff)
fix clippy warnings
Diffstat (limited to 'audio/csound')
-rw-r--r--audio/csound/tests/csound_filter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/csound/tests/csound_filter.rs b/audio/csound/tests/csound_filter.rs
index 0cce0ad3..4c94cdb7 100644
--- a/audio/csound/tests/csound_filter.rs
+++ b/audio/csound/tests/csound_filter.rs
@@ -167,7 +167,7 @@ fn csound_filter_eos() {
let output = map.as_slice().as_slice_of::<f64>().unwrap();
// all samples in the output buffers must value 1
- assert_eq!(output.iter().any(|sample| *sample as u16 != 1u16), false);
+ assert!(output.iter().all(|sample| *sample as u16 == 1u16));
num_samples += output.len();
num_buffers += 1;
@@ -190,7 +190,7 @@ fn csound_filter_eos() {
num_buffers += 1;
assert_eq!(output.len(), samples_at_eos);
- assert_eq!(output.iter().any(|sample| *sample as u16 != 1u16), false);
+ assert!(output.iter().all(|sample| *sample as u16 == 1u16));
// All the generated samples should have been processed at this point
assert_eq!(num_samples, EOS_NUM_SAMPLES * EOS_NUM_BUFFERS);