diff options
author | François Laignel <fengalin@free.fr> | 2021-06-05 01:16:05 +0300 |
---|---|---|
committer | François Laignel <fengalin@free.fr> | 2021-06-05 11:36:22 +0300 |
commit | 5439f14e57ad865e8e19b45ac191ed98743d8e2b (patch) | |
tree | be5b86826bb55e6d25121c3ad65560f216844f6c /audio/csound | |
parent | 8f8f5bdff70da01e8c518fca3a7a4a5b72a97c68 (diff) |
fix clippy warnings
Diffstat (limited to 'audio/csound')
-rw-r--r-- | audio/csound/tests/csound_filter.rs | 4 |
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); |