Fix clippy

This commit is contained in:
Luni-4 2019-10-04 11:54:11 +02:00
parent 8f5496b0fd
commit 8234df7f3d
1 changed files with 2 additions and 6 deletions

View File

@ -301,12 +301,8 @@ impl Device {
return Err(err.into()); return Err(err.into());
} }
let sample_rates = if min_rate == max_rate { let sample_rates = if min_rate == max_rate ||
vec![(min_rate, max_rate)] alsa::snd_pcm_hw_params_test_rate(handle, hw_params.0, min_rate + 1, 0) == 0
} else if alsa::snd_pcm_hw_params_test_rate(handle,
hw_params.0,
min_rate + 1,
0) == 0
{ {
vec![(min_rate, max_rate)] vec![(min_rate, max_rate)]
} else { } else {